delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/02/11:22:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: mkdir differences between 1.5.25 and 1.7
Date: Mon, 2 Nov 2009 08:22:23 -0800
Message-ID: <F3F5304BB3DD2445AF37A9E799FF6EE1093D3A28@CAVS1.sanmateo.corp.akamai.com>
In-Reply-To: <20091102121910.GB7831@calimero.vinschen.de>
References: <20091102121910 DOT GB7831 AT calimero DOT vinschen DOT de>
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-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

> > $ ls -ld /tmp/foo
> > drwxr-xr-x 1 root Administrators 0 Oct 29 20:27 /tmp/foo
>=20
> That's a umask thingy.  Your umask is probably set to 0022, and per
> POSIX, mkdir(2) has to take the umask into account.  If you use
> mkdir(1)
> from coreutils:
>=20
>   mkdir -m 777 /tmp/foo
>=20
> it should create the permissions as desired, though, since mkdir(1)
> sets the umask to 0 if the -m option has been given.

Thanks - that is the problem.   I don't see umask being set explicitly in /=
etc/profile on either 1.5.25 or 1.7.   Can you please confirm that it's bei=
ng set explicitly somewhere else for 1.7?

Appreciate the help!
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