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>
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / saty
is your question about accessing file1.txt for finance group:
if yes:linux.root@localhost#chmod 0777 file1.txt
| Is This Answer Correct ? | 0 Yes | 2 No |
what is the difference between service and process?
Explain how you would find a specific string in a file.
Which command is used to check the number of files and disk space used and the each user’s defined quota?
How do you insert comments in the command line prompt?
What is command grouping?
How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in linux machine environment.?
How will retrieves incoming mails from different web sites
what is first RHEL 5.x version support ext4 filesystem?
How do I get to root directory in linux?
What is the command to change from /etc/passwd file to /etc/shadow file?
You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose
what r the different command to check ram,process and hdd of linux machine