天天看點

Rhel7 設定目錄權限,acl權限

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--

      本文轉自810105851 51CTO部落格,原文連結:http://blog.51cto.com/4708948/1701885,如需轉載請自行聯系原作者