2016-12-13 66 views
2

我试图在树中的所有文件和目录设置特殊的ACL,他们似乎并没有兑现。我正在运行Solaris 5.10。 ACL由'man chmod'描述。UNIX ZFS ACL不的荣幸

我设置ACL,使得文件的修改的属性(A)或文件的ACL(W)是不允许的。但是我仍然可以修改它们 - 一旦我这样做,文件上的所有特殊ACL就会消失。例如:

/test> ls -lV filename 
-r-x------+ 1 svcdiscprod sasuser  355 Dec 13 09:56 filename 
       [email protected]:r-xp-Da-R-c--s:fd----:allow 
    user:svcdiscprod:r-xp-Da-R-c--s:fd----:allow 
      [email protected]:------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 

什么是解决方案?

回答

2

为什么你认为命令应该被阻止?

the ZFS Administration Guide

对ZFS文件

ACL设置...

  • 文件的所有者被授予write_acl许可无条件,即使权限明确否认。 ...