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 could possibly be the problem when a command that was issued gave a different result from the last time it was used?
What is git command?
How do I do a whois search?
What is cpu core in linux?
How do I check disk space in bash?
How find ip address linux?
What does wc command do in unix?
How do I create a .txt file?
In order to display the last five commands you have entered using the fc command, you would type?
What are system commands?
What is free linux?
Who linux commands?
What is #!/ Bin sh?
What is the command to see on which port which service is running? And what is the difference between /etc/services file and net stat command?
How do I check my cpu cores?