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 |
Why ms dos is used?
What is the programming language for linux?
Write a cron entry for the following scenario:- At 10:30 AM for every Sunday of every 1st month of a quarter.
What is cd command used for?
What does history command do in linux?
What is a simple command?
How do I overclock my cpu?
1. Why "d" is postfix in almost every service name of Linux like httpd, dhcpd? 2. how to restrict su & ssh services for some users? 3. how can we configure a default gateway for 10 n/w cards in a server?
Linux system monitoring Tools?
Brief about the command ff?
How do you list all the files in a directory, including hidden files?
a remote shell is invoked by the command a)remote_shell b)remote_sh c)rsh d)remote conn