UNIX ZFS ACL 未得到遵守

标签 unix solaris acl zfs

我正在尝试对树中的所有文件和目录设置特殊 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/

相关文章:

linux - 根据标签内的关键字删除行

c++ - Sun Studio 和 "",第 1 行 : Illegal flag (-)

python - Pyramid "per object"权限

linux - Mercurial ACL 防止拉

php - Laravel Cartalyst Sentinel - 向用户表添加用户名列(什么是正确的方法)

python - 如何防止 Python 的 os.walk 遍历挂载点?

linux - 在系统调用中是否保存了硬件和软件上下文?

linux - 每次显示时从两种模式之间获取文本

用于监视进程和发送邮件(如果失败)的 Bash 脚本

c++ - Solaris 进程内存使用量增加但不会永远增加