mkdir differences between 1.5.25 and 1.7
Egerton, Jim
jegerton@akamai.com
Wed Oct 28 18:11:00 GMT 2009
Hi,
I'm seeing a few things with mkdir and acl's I don't quite understand - OS is Server 2008.
First, from the shell I see different behaviors with mkdir on 1.5.25 and 1.7.
On 1.5.25 ($ filever \\usr\\bin\\cygwin1.dll --a-- W32i DLL ENU 1005.25.0.0 shp 1,872,884 06-12-2008 cygwin1.dll)
bash-3.2$ getfacl /tmp
# file: /tmp
# owner: root
# group: Administrators
user::rwx
group::rwx
group:Users:rwx
mask:rwx
other:rwx
default:user::rwx
default:group:SYSTEM:rwx
default:group:Administrators:rwx
default:group:Users:rwx
default:mask:rwx
bash-3.2$ mkdir /tmp/test
bash-3.2$ getfacl /tmp/test
# file: /tmp/test
# owner: Administrator
# group: None
user::rwx
group::rwx
mask:rwx
other:rwx
default:user::rwx
default:group::rwx
default:other:rwx
on 1-7 (filever \\usr\\bin\\cygwin1.dll --a-- W32i DLL ENU 1007.0.0.0 shp 2,472,737 10-23-2009 cygwin1.dll)
bash-3.2$ getfacl /tmp
# file: /tmp
# owner: root
# group: Administrators
user::rwx
user:LocalService:rwx
group::rwx
group:Users:rwx
mask:rwx
other:rwx
default:user::rwx
default:group:SYSTEM:rwx
default:group:Administrators:rwx
default:group:Users:rwx
default:mask:rwx
bash-3.2$ mkdir /tmp/test
bash-3.2$ getfacl /tmp/test
# file: /tmp/test
# owner: Administrator
# group: None
user::rwx
group::r-x
mask:rwx
other:r-x
It looks like the default acls are getting lost.
I also ran into a problem with the mkdir "C" API which may or may not be related. As far as I can tell, the permissions mask passed to mkdir with 1.7 is ignored. The chmod API works fine.
Are either of these changes expected?
Thanks for looking,
jim
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list