chmod命令可以把文件权限分为u,g,o三个组,而setfacl可以对每一个文件或目录设置更精确的文件权限。

添加handsome用户 读取test.txt权限

setfacl -m u:handsome:r test.txt

取消权限

setfacl -x u:handsome test.txt

查询权限

getfacl test.txt