[root@server0 ~]# cp /etc/fstab /var/tmp/. 拷贝fstab文件至/var/tmp/目录,/.表示拷贝后不修改文件名
[root@server0 ~]# setfacl -m u:natasha:wr /var/tmp/fstab 设置natasha用户对/var/tmp/fstab有读写权限
[root@server0 ~]# setfacl -m u:harry:0 /var/tmp/fstab 设置harry用户对/var/tmp/fstab无任何权限
[root@server0 ~]# getfacl /var/tmp/fstab 查询配置结果
getfacl: Removing leading '/' from absolute path names
# file: var/tmp/fstab
# owner: root
# group: root
user::rw-
user:natasha:rw-
user:harry:---
group::r--
mask::rw-
other::r—