Rhel7 设置目录权限,acl权限

改变用户和组的所属

Getfacl 取得

Setfacl设置

[root@desktop0 tmp]# setfacl -m u:natasha:rw fstab

[root@desktop0 tmp]# setfacl -m u:harry:- fstab

[root@desktop0 tmp]# setfacl -m o::r fstab

[root@desktop0 tmp]# getfacl fstab

# file: fstab

# owner: root

# group: root

user::rw-

user:natasha:rw-

user:harry:---

group::r--

mask::rw-

other::r--