Welcome to the Linux Foundation Forum!

CentOS 7.2 VM ACL mask problem...

LeonidasSavvidesLeonidasSavvides Posts: 2
edited August 2017 in LFS201 Class Forum

CentOS 7.2 VM ACL mask problem... why mask is Not same as group permisions? my book says mask is min permissions set my normal group permissions... well? why shell Do Not show effective permissions on getfacl...?

group::r--

...

mask::rw-

==============================

[[email protected] ~]$ touch acl1.txt

[[email protected] ~]$ ls -l acl1.txt

-rw-rw-r--. 1 tux tux 0 Aug 23 18:23 acl1.txt

[[email protected] ~]$ chmod 644 acl1.txt

[[email protected] ~]$ ls -l acl1.txt

-rw-r--r--. 1 tux tux 0 Aug 23 18:23 acl1.txt

[[email protected] ~]$ setfacl -m g:sales:rw acl1.txt

[[email protected] ~]$ setfacl -m u:bob:rw acl1.txt

[[email protected] ~]$ getfacl acl1.txt

# file: acl1.txt

# owner: tux

# group: tux

user::rw-

user:bob:rw-

group::r--

group:sales:rw-

mask::rw-

other::r--

 

[[email protected] ~]$

Comments

Sign In or Register to comment.