日期:2014-05-16  浏览次数:20766 次

请求解释下这个地方哦



mask ::r--
default:mask::rwx

为什么这里不一致呢?default:mask::rwx表示什么意思呢?

------解决方案--------------------
探讨
? 如何化解虚拟化与存储性能之间...? 云计算IDC服务都包括什么?? 云计算和云存储的关系?? x86架构为什么更适合做云计算?? 云计算是否会挤占高端台式机和...


mask ::r--
default:mask::rwx

为什么这里不一致呢?default:mask::rwx表示什么意思呢?

------解决方案--------------------
For each file, getfacl displays the file name, owner, the group, and the Access Control List (ACL). If a directory has
a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs.

If getfacl is used on a file system that does not support ACLs, getfacl displays the access permissions defined by the
traditional file mode permission bits.

The output format of getfacl is as follows:
1: # file: somedir/
2: # owner: lisa
3: # group: staff
4: user::rwx
5: user:joe:rwx #effective:r-x
6: group::rwx #effective:r-x
7: group:cool:r-x
8: mask:r-x
9: other:r-x
10: default:user::rwx
11: default:user:joe:rwx #effective:r-x
12: default:group::r-x
13: default:mask:r-x
14: default:other:---

Lines 4, 6 and 9 correspond to the user, group and other fields of the file mode permission bits. These three are
called the base ACL entries. Lines 5 and 7 are named user and named group entries. Line 8 is the effective rights mask.
This entry limits the effective rights granted to all groups and to named users. (The file owner and others permissions
are not affected by the effective rights mask; all other entries are.) Lines 10--14 display the default ACL associated
with this directory. Directories may have a default ACL. Regular files never have a default ACL.
------解决方案--------------------
探讨

For each file, getfacl displays the file name, owner, the group, and the Access Control List (ACL). If a directory has
a default ACL, getfacl also displays the default ACL. Non-directories c……