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
What is the difference between locating and locate command?
How do you sort cpu in top command?
What is difference between sh and bash?
What could be the problem when a command that was issued gave a different result from the last time it was used?
What file type is a makefile?
What does f mean linux?
What is ls command and what it does?
Which command is used to check the number of files and disk space used and the each user’s defined quota?
What is bash history linux?
How do I find old commands in linux?
When and how linux developed?
Who command in linux?
How do I clear my run history?
Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?
What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc..?