In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There is a file named as file1.txt. The permission set for the above file is rwx-rw----x. Now the question is only the members of Hr and Marketing group can view and edit the file. But the file is not accessible to the members of Finance Group. Can anyone tell me what would be the exact command for linux.root@localhost#<type the exact linux command>

Answer Posted / hems

let's say HR,MR,FIN are groups,
then,
#chown -R HR:MR file1.txt
#chmod -R 660 file.txt

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the mknod command and when you’d use it.

546


What does free command do in linux?

585


What does chmod 755 do?

479


How do I check dns entry?

559


What is an os command?

565






What is make in linux?

530


What are the options of wc command?

552


Which Command used to lock user password in Linux?

567


What is ps command in linux?

545


You issue the command head * what would the resulting output be?

535


Is cmake a compiler?

603


How do I find previous commands in linux?

543


What does history command do in linux?

528


What does chmod do in linux?

548


What does make clean command do?

523