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

How to root mirror in linux?

558


Write about an internal command.

593


How do I find my user id in linux?

514


How many interfaces(ethernet cards) are working using single command?

522


What is ps command in linux?

541






Brief about the command ff?

583


What is df -i command?

544


What is the difference between clang and llvm?

554


Who linux commands?

549


How you will create new folder / directories and how to remove file and folder in linux?

475


What does rmdir do in linux?

530


How does diff command work?

505


What is free linux?

563


What does f mean linux?

524


What is unix finger command?

506