- 论坛徽章:
- 0
|
1, 察看文件是否具有acl
%ls -l
2,将acl添加到文件
%setfacl -s user::perms,group::perms,other:perms,mask:perms,acl-entry-list filename ...
要求至少有 user::、group:: 和 other:: 项;
mask:perms 指定 ACL 掩码的权限。掩码表示允许用户(属主除外)和组拥有的最大权限。
% setfacl -s user::rw-,group::r--,other:---,mask:rw-,user:anusha:rw- ch1.sgm
3, 察看文件是否具有acl
%getfacl filename
4,复制acl
% getfacl filename1 | setfacl -f - filename2
5,更改文件acl项
%setfacl -m acl-entry-list filename ...
%setfacl -m user:zjw:6 hello
6,删除文件acl
% setfacl -d acl-entry-list filename ...
ref:
1,
http://docs.sun.com/app/docs/doc/819-7061/6n91j2v4o?l=zh&a=view#secfile-35
2,
http://x.discuz.net/148776/viewspace-92533
Linux ACL 体验
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/46984/showart_377337.html |
|