Search This Blog

Sunday, July 31, 2011

Create and manage Access Control Lists (ACLs)

ACLs are an addition to the standard Unix file permissions (r,w,x,-) for User, Group, and Other for read, write, execute and deny permissions. ACLs give users and administrators flexibility and direct fine-grained control over who can read, write, and execute files.

#getfacl filename
(will show file permissions)

#setfacl -m u:user:rw- filename
(Gives user read,write permission over filename

#ll
show files which have acces control lists applied ("+" sign in last collumn)
Example: -rw-rw-r--+