Linux setfacl 删除组权限
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7824344/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
setfacl remove group permission
提问by Sangfroid
I am trying to remove group ACL from a certain folder. It has permissions as below
我正在尝试从某个文件夹中删除组 ACL。它具有如下权限
$ getfacl --all-effective public
# file: public
# owner: sse02
# group: apache
user::rwx
group::r-x #effective:r-x
mask::r-x
other::---
default:user::rwx
default:group::r-x #effective:r-x
default:group:acct:rwx #effective:rwx
default:mask::rwx
default:other::r-x
$
I wanted to remove the access granted to the group 'acct' with the following command, but it is not simply working
我想使用以下命令删除授予组“acct”的访问权限,但这不仅仅是工作
setfacl -x g:acct public
What could be going on wrong? Any ideas?
可能会发生什么问题?有任何想法吗?
This is a RHEL5 box with ext3 file system.
这是一个带有 ext3 文件系统的 RHEL5 盒子。
回答by Jonathan Leffler
The group:acct
entry is listed with default:
in front, and the setfacl
man page suggests that the ACL specification can be (spaces added for clarity in the man page):
该group:acct
条目列default:
在前面,setfacl
手册页建议 ACL 规范可以是(为了清楚起见在手册页中添加了空格):
[d[efault]:] g[roup]:gid [:perms]
Permissions of a named group. Permissions of the owning group if gid is empty.
[d[efault]:] g[roup]:gid [:perms]
命名组的权限。如果 gid 为空,则拥有组的权限。
I think you should try:
我认为你应该尝试:
setfacl -x d:g:acct public