Linux command
getfacl 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Show
getfacl path/to/file
Example
getfacl -n path/to/file
Tabular
getfacl -t path/to/file
说明
getfacl displays file access control lists (ACLs). ACLs provide more fine-grained access control than traditional Unix permissions, allowing permissions for specific users and groups beyond owner/group/other.
参数
- -n, --numeric
- Display numeric user and group IDs
- -t, --tabular
- Use tabular output format
- -a, --access
- Display access ACL
- -d, --default
- Display default ACL
- -R, --recursive
- Recurse into directories
- -p, --absolute-names
- Don't strip leading slashes
FAQ
What is the getfacl command used for?
getfacl displays file access control lists (ACLs). ACLs provide more fine-grained access control than traditional Unix permissions, allowing permissions for specific users and groups beyond owner/group/other.
How do I run a basic getfacl example?
Run `getfacl path/to/file` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --numeric do in getfacl?
Display numeric user and group IDs