Posted By

kayue on 12/31/10


Tagged


Versions (?)

Access Control Link


 / Published in: Bash
 

  1. # Enable ACL
  2. mount -o remount,acl /
  3.  
  4. # Display ACL
  5. getfacl <file>
  6.  
  7. # Set defualt user,grouop
  8. setfacl -m d:g:<group>:rwx .
  9. setfacl -m d:u:<user>:rwx .
  10.  
  11. # Set ACL recursive (--modify)
  12. setfacl -Rm u:<user>:rwx .
  13. setfacl -Rm g:<group>:rwx .
  14.  
  15. # Remove specific entries from an ACL (--remove)
  16. setfacl -x u:<usre> <file>
  17.  
  18. # Remove Entire ACL
  19. setfacl --remove-all <file>
  20.  
  21. # Remove entire ACL recursive
  22. setfacl -Rb .
  23.  
  24.  

Report this snippet  

You need to login to post a comment.