이 콘텐츠는 선택한 언어로 제공되지 않습니다.
14.4. Retrieving ACLs
To determine the existing ACLs for a file or directory, use the
getfacl
command:
getfacl <filename>
getfacl <filename>
It returns output similar to the following:
file: file owner: andrius group: andrius
# file: file
# owner: andrius
# group: andrius
user::rw-
user:smoore:r--
group::r--
mask::r--
other::r--
If a directory is specified, and it has a default ACL, the default ACL is also displayed such as:
file: file owner: andrius group: andrius
# file: file
# owner: andrius
# group: andrius
user::rw-
user:smoore:r--
group::r--
mask::r--
other::r--
default:user::rwx
default:user:andrius:rwx
default:group::r-x
default:mask::rwx
default:other::r-x