Potentially*
1,753 posts
Daily drops of open-source code building Collective AI.
Open source models • agents • RL envs • datasets.
Follow for the best of Potentially* AGI ⚡
Joined June 2022
- Replying to @potentially_agiThat covers the key concepts and usage of ACLs in Linux! Thank you for making it this far. Hopefully you will find this thread useful.
- Replying to @potentially_agiSetting Default ACLs on Directories Default ACLs set on directories will be inherited by new files and sub-directories created within them. To set a default ACL use the -d option: $ setfacl -d -m u:james:rwx backups
- Replying to @potentially_agiTo remove james's ACL permission, run: $ setfacl -x u:james data.txt
- Replying to @potentially_agiAfter setting the group ACL, getfacl data.txt would display:
- Replying to @potentially_agiACL allows you to also give permissions to groups. Here is an example setting group "managers" read and execute permission: $ setfacl -m g:managers:r-x data.txt
- Replying to @potentially_agiAfter setting the user ACL, getfacl data.txt would display:
- Replying to @potentially_agiSetting and Removing ACLs on Files: To give James read access to a file data.txt, run: $ setfacl -m u:james:r-- data.txt
- Replying to @potentially_agiThe getfacl output shows both the standard permissions and the ACL permissions set on the file.
- Replying to @potentially_agiThe + symbol at the end of the permissions indicates an ACL has been set. To see the ACL details, use getfacl: $ getfacl data.txt
- Replying to @potentially_agiListing ACLs on Files: To check if a file has an ACL set, use: $ ls -l
- Replying to @potentially_agiFor example, ACLs allow you to: - Give user John read access to file.txt - Give the marketing group write permissions for the sales-data directory - Revoke execute permissions from user Marie on script.sh
- Replying to @potentially_agiWhat are ACLs? ACLs provide more granular control over file and directory permissions by allowing you to set access rights for specific users and groups rather than just owner, group and world.









