1、查看facl权限
getfacl /home/test.txt
[root@localhost ~]# getfacl /home/test.txtgetfacl: Removing leading '/' from absolute path names# file: home/test.txt# owner: root# group: rootuser::rw-group::r--other::r--
2、设置facl权限
setfacl -m u:latiny:rw /home/test.txt
setfacl -m u:hulk:rwx /home/test.txt
[root@localhost ~]# setfacl -m user:hulk:rwx /home/test.txt [root@localhost ~]# getfacl /home/test.txt getfacl: Removing leading '/' from absolute path names# file: home/test.txt# owner: root# group: rootuser::rw-user:latiny:rw-user:hulk:rwxgroup::r--mask::rwxother::r--
3、撤销facl权限
setfacl -x u:hulk /home/test.txt
4、复制facl权限
getfacl file2 | setfacl --set-file=- file2