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 do you create a file in linux?
What does grep grep do?
How do I change directories in linux command line?
What does && mean in bash?
Which command reduces the size of a file?
How do you insert comments in the command line prompt?
What are the ms dos commands?
What is $@ in makefile?
What is a make target?
What is the use of mv command in linux?
How do I use nslookup in linux?
How do I run a command in linux?
How do I overclock my cpu?
What is the difference between diff and cmp command in unix?
How do I check command history?