getfacl

getfacl 可查看设置的ACL权限

[root@node02 data]# getfacl /data/test
getfacl: Removing leading '/' from absolute path names
# file: data/test
# owner: user1
# group: user1
user::rwx
group::r-x
other::r-x

[root@node02 data]# setfacl -m u:user2:rw /data/test
[root@node02 data]# getfacl /data/test
getfacl: Removing leading '/' from absolute path names
# file: data/test
# owner: user1
# group: user1
user::rwx
user:user2:rw-
group::r-x
mask::rwx
other::r-x

 

posted @ 2022-03-09 22:51  是阿帅不是阿衰  阅读(81)  评论(0编辑  收藏  举报