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
How to root mirror in linux?
Write about an internal command.
How do I find my user id in linux?
How many interfaces(ethernet cards) are working using single command?
What is ps command in linux?
Brief about the command ff?
What is df -i command?
What is the difference between clang and llvm?
Who linux commands?
How you will create new folder / directories and how to remove file and folder in linux?
What does rmdir do in linux?
How does diff command work?
What is free linux?
What does f mean linux?
What is unix finger command?