Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### List
- ```sh
- ls -le
- ```
- ### Add
- ```sh
- # Recursively add the following ACE to all files and folders inside Directory Name, marking the ACE as inherited.
- chmod -R +ai "group:marketing allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" DirectoryName/*
- # Apply the same ACE directly to "Directory Name," without marking it as inherited (allowing it to be edited in the Server app).
- chmod +a "group:marketing allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" DirectoryName
- ```
- ### Insert by index +a#
- ```sh
- chmod +a# 0 "group:marketing allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" DirectoryName
- ```
- ### Replace =a#
- ```sh
- chmod =a# 2 "group:marketing allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" DirectoryName
- ```
- ### Remove -a#
- ```sh
- chmod -a# 0 DirectoryName
- # Use -N to alltogether remove an ACL from a file or directory:
- # Tip: chmod -RN will recursively remove ACLs
- chmod -N DirectoryName
- ```
Add Comment
Please, Sign In to add comment