# wrote by dywer 03/11/09
vim /etc/fstab defaults,acl
mount -o remount,acl [mount point]
mount -o remount,acl [mount point]
# for files
getfacl file
setfacl --modify u:user:rwx file # add user permission
setfacl --modify g:group:rwx file # add group permission
setfacl --modify g:group:rwx file # add group permission
setfacl --remove u:user:rw file # delete
setfacl --remove-all file # delete all
setfacl --remove-all file # delete all
setfacl --modify u::rwx file # same as chmod
setfacl --modify g::rw file
setfacl --modify o::rw file
setfacl --modify g::rw file
setfacl --modify o::rw file
# for directories
setfacl -dm u:oracle:rwx dir
drwxr-sr-x+ 3 root root 4096 03-11 11:32 dir
# all subdir and file auto has oracle permission when be created
drwxr-sr-x+ 3 root root 4096 03-11 11:32 dir
# all subdir and file auto has oracle permission when be created
转载于:https://blog.51cto.com/dywer/163966
vim与ACL权限
本文介绍了如何使用vim编辑器修改fstab文件以设置默认挂载选项,并详细讲解了通过getfacl和setfacl命令管理文件及目录的访问控制列表(ACL)。包括添加、删除用户或组权限的具体操作。
1万+

被折叠的 条评论
为什么被折叠?



