delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/28/13:11:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: mkdir differences between 1.5.25 and 1.7
Date: Wed, 28 Oct 2009 11:11:11 -0700
Message-ID: <F3F5304BB3DD2445AF37A9E799FF6EE1091C3A81@CAVS1.sanmateo.corp.akamai.com>
From: "Egerton, Jim" <jegerton AT akamai DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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.=20=20=20

I also ran into a problem with the mkdir "C" API which may or may not be re=
lated.   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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019