You can view the existing POSIX ACLs for a file or directory.
To view existing POSIX ACLs
- View the existing access ACLs of a file using the following command:
# getfaclpath/filenameFor example, to view the existing POSIX ACLs for sample.jpg# getfacl /mnt/gluster/data/test/sample.jpg # owner: antony # group: antony user::rw- group::rw- other::r--
- View the default ACLs of a directory using the following command:
# getfacldirectory nameFor example, to view the existing ACLs for /data/doc# getfacl /mnt/gluster/data/doc # owner: antony # group: antony user::rw- user:john:r-- group::r-- mask::r-- other::r-- default:user::rwx default:user:antony:rwx default:group::r-x default:mask::rwx default:other::r-x