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 / manavalan

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

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you ask politely?

534


What does mkdir do in linux?

531


You wish to print a file ‘draft’ with 60 lines on a page. What command would you use?

662


What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?

612


How do I move to root in linux?

512






What is command grouping?

566


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

532


What are the 7 types of sentences?

561


what is the roles and responsibilities in linux system admin having 2yrs exp..?

3769


Write a command that will display all .txt files, including its individual permission.

2242


What is build process?

569


What is mkdir?

535


What file type is a makefile?

526


What is FC command?

495


What are system commands?

570