ACL's in Linux

Note: You need to make sure you're mounting the filesystem with the acl option! (exception: I don't think XFS needs this.)

clear all permissions: $ setfacl -b shows

set default permissions: $ chown -R willgreg:adults shows

give advanced students and adults group permission in shows: $ setfacl -R -m group:advanced\\040students:rwx shows && setfacl -R -m group:adults:rwx shows

set default acl (inherited permission) for advanced students and adults in shows: $ setfacl -d -R -m group:advanced\\040students:rwx shows && setfacl -d -R -m group:adults:rwx shows

show permissions (after running the above commands ONLY): $ getfacl shows

# file: shows
# owner: willgreg
# group: adults
user::rwx
group::rwx
group:adults:rwx
group:advanced\040students:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:adults:rwx
default:group:advanced\040students:rwx
default:mask::rwx
default:other::r-x
computer/acls_in_linux.txt · Last modified: 2010/07/10 12:19 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS