Created
March 20, 2017 19:41
-
-
Save mdeguzis/48b8e891e6b39af177b00eef830d15c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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