access control lists (ACLs)

Grant rwx access to files and directories for multiple users or groups

mount -o acl /directory

查看acl
getfack file|directory

设置acl
setfacl -m u:gandolf:rwx file|directory
setfacl -m g:nazgul:rw file|directory
setfacl -m d:u:frodo:rw directory

删除acl
setfacl -x u:samwise file|directory

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/312079/viewspace-1003800/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-1003800/

你可能感兴趣的:(access control lists (ACLs))