X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 2 Nov 2009 17:26:01 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: mkdir differences between 1.5.25 and 1.7
Message-ID: <20091102162601.GA2587@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20091102121910.GB7831@calimero.vinschen.de>  <F3F5304BB3DD2445AF37A9E799FF6EE1093D3A28@CAVS1.sanmateo.corp.akamai.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F3F5304BB3DD2445AF37A9E799FF6EE1093D3A28@CAVS1.sanmateo.corp.akamai.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Nov  2 08:22, Egerton, Jim wrote:
> > > $ ls -ld /tmp/foo
> > > drwxr-xr-x 1 root Administrators 0 Oct 29 20:27 /tmp/foo
> > 
> > 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:
> > 
> >   mkdir -m 777 /tmp/foo
> > 
> > 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 being set explicitly somewhere else for 1.7?

The default umask is set to 0022 in Cygwin 1.7 due to security
considerations.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

