Skip to content

Instantly share code, notes, and snippets.

@mdeguzis
Created March 20, 2017 19:41
Show Gist options
  • Save mdeguzis/48b8e891e6b39af177b00eef830d15c6 to your computer and use it in GitHub Desktop.
Save mdeguzis/48b8e891e6b39af177b00eef830d15c6 to your computer and use it in GitHub Desktop.
getfacl /home/user/temp
# file: temp
# owner: user
# group: group
user::rwx
group::rwx
user::rwx
python
>>> import posix1e
>>> b = posix1e.ACL(text="u:user:rwx,g:group:r,o::-")
>>> b.applyto("/home/user/temp")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment