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



In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There i..

Answer / manavalan

setfacl -m g:Hr:rw ,g:Marketing:rw file1.txt

Is This Answer Correct ?    3 Yes 0 No

In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There i..

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

In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There i..

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

Post New Answer

More Linux Commands Interview Questions

what is the command to make a process to run in the foreground from background?

5 Answers  


What is the command to list ALL (hidden also) files of current directory & it’s subdirectories?

6 Answers  


How do I run a bash script in linux?

0 Answers  


A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?

5 Answers   CTS,


Explain about refer?

0 Answers  






What is the command to see on which port which service is running?

0 Answers  


What is c++ makefile?

0 Answers  


What is the pwd command?

0 Answers  


What is SFC command?

0 Answers  


What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

0 Answers  


What would be the result of the command paste -s dog cat?

0 Answers  


What is command grouping and how does it work?

0 Answers  


Categories