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

What are the basic commands for user management?

548


What is the command to delete a file linux?

531


How do I check my disk space?

475


What are whois tools?

529


Find command can search for files by

550






What does pwd mean in linux?

548


What is the difference between cd and cd in linux?

514


What does touch do in linux?

520


How do I check cores in linux?

540


What is clang format?

532


How do I check command history?

546


What is help command in linux?

549


What command can you use to make a tape archive file of a /home directory and send it to the /dev/tape device?

564


What is ls command and what it does?

558


What does wc command do in unix?

534