chmod命令可以把文件权限分为u,g,o三个组,而setfacl可以对每一个文件或目录设置更精确的文件权限。
添加handsome用户 读取test.txt权限
setfacl -m u:handsome:r test.txt
取消权限
setfacl -x u:handsome test.txt
查询权限
getfacl test.txt
NIO4444 博主文章分类:【Linux进阶实战】 ©著作权
chmod命令可以把文件权限分为u,g,o三个组,而setfacl可以对每一个文件或目录设置更精确的文件权限。
添加handsome用户 读取test.txt权限
setfacl -m u:handsome:r test.txt
取消权限
setfacl -x u:handsome test.txt
查询权限
getfacl test.txt
在某些情况下,需要为用户添加特定的权限,例如 ALTER VIEW 权限,以允许他们修改视图。
MySQL用户管理与权限管理
linux ACL权限规划:getfacl,setfacl使用 A
linux ACL权限规划:getfacl,setfacl使用
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M