ACCESS CONTROL LIST (ACL)

We assign permission to the specific file for provide security, but still it has some limitation just like if we set 777 permission for a file, it set for all the user, but now if we have a need that just user1 can execute the file then it will be problematic so we cannot assign different permissions for different users so ACL comes in.

Now we set permission for file.txt

1st we create “file.txt” in “/tmp” directory then set ACL with “setfacl” command where m ( modify ) u (user name) then permission and location of file.

clip_image001

How to see ACL list. We have “getfacl command”

clip_image002

Through ACL we give permission to ram user to modify the file.

Check how it’ work

clip_image003

It’s working.

To remove ACL

clip_image004