Query regarding ACL

"jitender v" <[email protected]> Fri, 29 Dec 2006 17:59:04 +0530
Newsgroups gmane.linux.file-systems.acl.devel
Message-ID <[email protected]>
--===============0714794853==
Content-Type: multipart/alternative; 
	boundary="----=_Part_118942_8509988.1167395344997"

------=_Part_118942_8509988.1167395344997
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello All,

 Got a basic question regarding ACL..what will the file/directory permission
created in a ACL configured partition. Does it takes the UMASK permission or
the ACL permission.

Example:
Hello,

 Got some queries regarding ACL's, please help me.

1. I got a partition with ACL configured. Operating System is RHEL4 U-4.
]# mount -o acl /dev/sda5 /test
]# getfacl test
# file: .
# owner: root
# group: root
user::rwx
group::r-x
mask::r-x
other::r-x
]# ls -ld /test
drwxr-xr-x 3 root root 1024 Dec 28 13:59 /test
]# chown jeetu.apple /test
drwxr-xr-x 3 jeetu apple 1024 Dec 28 14:01 /test
]# cd /test
]# mkdir testroot
]# ls -ld testroot
drwxr-xr-x  2 root     root      1024 Dec 28 14:10 testroot
]# getfacl testroot
# file: testroot
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
]# setfacl -m u:jisa:rwx testroot
]# getfacl testroot
# file: testroot
# owner: root
# group: root
user::rwx
user:jisa:rwx
group::r-x
mask::rwx
other::r-x
]# ls -ld testroot
drwxrwxr-x+ 2 root root 1024 Dec 28 14:52 testroot

* Why does the group permission change here? If I'm not specifying rwx for
the user jisa and only rx, then the group permission does not changes.
]# setfacl -x u:jisa testroot
]# setfacl -m u:jisa:rx testroot
]# ls -ld testroot
drwxr-xr-x+ 2 root root 1024 Dec 28 15:12 testroot
]# getfacl testroot
# file: testroot
# owner: root
# group: root
user::rwx
user:jisa:rx
group::r-x
mask::rwx
other::r-x

* Whenever I create a file/directory, how does the permission is set for the
file/directory? Does it takes the UMASK permission of the owner who's
creating the file/directory or does it sets the permission of the parent
directory or does it sets according to the ACL value of the parent
directory.

Thanks in advance,
JI

------=_Part_118942_8509988.1167395344997
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello All,<br><br>&nbsp;Got a basic question regarding
ACL..what will the file/directory permission created in a ACL
configured partition. Does it takes the UMASK permission or the ACL
permission.<br><br>Example:<br>Hello,<br><br>
&nbsp;Got some queries regarding ACL&#39;s, please help me.<br><br>1. I got a partition with ACL configured. Operating System is RHEL4 U-4.<br>]# mount -o acl /dev/sda5 /test<br>]# getfacl test<br># file: .<br># owner: root<br>

# group: root<br>user::rwx<br>group::r-x<br>mask::r-x<br>other::r-x<br>]# ls -ld /test<br>drwxr-xr-x 3 root root 1024 Dec 28 13:59 /test<br>]# chown jeetu.apple /test<br>drwxr-xr-x 3 jeetu apple 1024 Dec 28 14:01 /test<br>

]# cd /test<br>]# mkdir testroot<br>]# ls -ld testroot<br>drwxr-xr-x&nbsp; 2 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Dec 28 14:10 testroot<br>]# getfacl testroot<br># file: testroot<br># owner: root<br># group: root<br>user::rwx<br>group::r-x
<br>other::r-x<br>]# setfacl -m u:jisa:rwx testroot<br>]# getfacl testroot<br># file: testroot<br># owner: root<br># group: root<br>user::rwx<br>user:jisa:rwx<br>group::r-x<br>mask::rwx<br>other::r-x<br>]# ls -ld testroot
<br>drwxrwxr-x+ 2 root root 1024 Dec 28 14:52 testroot<br><br>* Why
does the group permission change here? If I&#39;m not specifying rwx for
the user jisa and only rx, then the group permission does not changes.<br>]# setfacl -x u:jisa testroot
<br>]# setfacl -m u:jisa:rx testroot<br>]# ls -ld testroot<br>drwxr-xr-x+ 2 root root 1024 Dec 28 15:12 testroot<br>]# getfacl testroot<br># file: testroot<br># owner: root<br># group: root<br>user::rwx<br>user:jisa:rx<br>

group::r-x<br>mask::rwx<br>other::r-x<br><br>*
Whenever I create a file/directory, how does the permission is set for
the file/directory? Does it takes the UMASK permission of the owner
who&#39;s creating the file/directory or does it sets the permission of the
parent directory or does it sets according to the ACL value of the
parent directory.
<br><br>Thanks in advance,<br>JI





------=_Part_118942_8509988.1167395344997--

--===============0714794853==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel

--===============0714794853==--