setfacl的m、x参数并非绝对对称操作:m改变ACL元,而x用以删除ACL元。前者包括“变更”和“添加”两层含义,后者仅有“删除”含义。应注意setfacl手册中对x操作的两点说明:
The -x (--remove) and -X (--remove-file) options remove ACL enries. Only ACL entries without the perms field are accepted as parameters, unless POSIXLY_CORRECT is defined.
- AUTOMATICALLY CREATED ENTRIES
Initially, files and directories contain only the three base ACL entries for the owner, the group, and others. There are some rules that need to be satisfied in order for an ACL to be valid:
1) The three base entries cannot be removed. There must be exactly one entry of each of these base entry types.
没有评论:
发表评论