docs/en/security/posix_acl.md
POSIX ACLs (Portable Operating System Interface for Unix - Access Control Lists) are an access control mechanism in Unix-like operating systems that allows for finer-grained control over file and directory access permissions.
This document introduces how to enable and use POSIX ACL permissions in JuiceFS.
--enable-acl option is tied to the volume.:::caution If you plan to use ACL functionality, it is recommended to upgrade all clients to the latest version to avoid potential issues with older versions affecting the accuracy of ACLs. :::
As mentioned earlier, you can enable ACLs when creating a new volume or on an existing volume using a new version of the client.
Execute the following command to create a new volume and enable ACLs:
juicefs format --enable-acl sqlite3://myjfs.db myjfs
Use the config command to enable ACL functionality on an existing volume:
juicefs config --enable-acl sqlite3://myjfs.db
To set ACL permissions for a file or directory, you can use the setfacl command, for example:
setfacl -m u:alice:rw- /mnt/jfs/file
For detailed rules, guidelines, and implementation of POSIX ACLs, see: