我正在尝试对树中的所有文件和目录设置特殊 ACL,但它们似乎没有得到遵守。我正在运行 Solaris 5.10。 ACL 由“man chmod”描述。
我正在设置 ACL,以便不允许修改文件属性 (A) 或文件 ACL (W)。但我仍然可以修改它们 - 一旦修改,文件上的所有特殊 ACL 都会消失。例如:
/test> ls -lV filename
-r-x------+ 1 svcdiscprod sasuser 355 Dec 13 09:56 filename
owner@:r-xp-Da-R-c--s:fd----:allow
user:svcdiscprod:r-xp-Da-R-c--s:fd----:allow
everyone@:------a-R-c--s:------:allow
/test> chmod 666 filename # <== This command should be blocked
/test> ls -lV filename
-rw-rw-rw- 1 svcdiscprod sasuser 355 Dec 13 09:56 filename
解决办法是什么?
最佳答案
您为什么认为应该阻止该命令?
每the ZFS Administration Guide :
Setting ACLs on ZFS Files
...
- The owner of the file is granted the
write_acl
permission unconditionally, even if the permission is explicitly denied. ...
关于UNIX ZFS ACL 未得到遵守,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41131186/