Yar*_*rin 6 linux permissions access-control-list posix umask
我们想在某个目录上模拟系统范围 002 umask 的行为,foo以确保以下结果:
foo将具有 775 权限foo和子目录都将具有 664 权限setfacl -R -d -m mask:002 foo
Run Code Online (Sandbox Code Playgroud)
......但这不起作用。在目录中创建的新文件最终看起来像:
-rw--wr--+
当我运行getfacl新文件时,我得到:
# file: newfile.py
# owner: root
# group: agroup
user::rw-
group::rwx #effective:-w-
mask::-w-
other::r--
换句话说,施加mask:200与ACL是不一样的涂敷umask 200。
那么有没有办法通过 ACL 应用每个目录的 umask?
| 归档时间: |
|
| 查看次数: |
13551 次 |
| 最近记录: |