1、設置user1,使之新建文件權限為rw——-
umask 066 ~/.bashrc
2、設置/testdir/f1的權限,使user1用戶不可以讀寫執行,g1組可以讀寫
setfacl -m u:user1:-,g:g1:rw /testdir/f1
/testdir/dir的權限,使新建文件自動具有acl權限:user1:rw,g1:—
setfacl -m d:u:user1:rw,d:g:g1:0 /testdir/dir
setfacl -m u:user1:rwx /testdir/dir
備份/testdir目錄中所有文件的ACL,清除/testdir的所有ACL權限,并利用備份還原
getfacl -R /testdir > acl.txt
setfacl -b /testdir
setfacl –restore=acl.txt
原創文章,作者:msj77539273,如若轉載,請注明出處:http://www.www58058.com/30934
文章太過于簡單了,一個命令是干什么的,語法,常見選項目,都沒有。需要好好修改哦。