delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/03/08:32:55

X-Spam-Check-By: sourceware.org
Date: Mon, 3 Jul 2006 14:32:37 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mkdir inside unwritable dir
Message-ID: <20060703123237.GZ18873@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <44A8437E DOT 7010005 AT byu DOT net> <20060703082823 DOT GA14901 AT calimero DOT vinschen DOT de> <44A90A1A DOT 6080306 AT byu DOT net>
Mime-Version: 1.0
In-Reply-To: <44A90A1A.6080306@byu.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On Jul  3 06:14, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Corinna Vinschen on 7/3/2006 2:28 AM:
> >> $ mkdir unreadable
> >> $ chmod a-w unreadable
> >> $ mkdir unreadable/oops
> >>
> > Any chance you're running with administrator privileges?
> 
> How'd you guess?  Yes, this was on an XP machine where I have admin
> privileges.  I found it because 'make distcheck' on the m4 package was
> working for me but failing for others, thanks to automake setting the
> srcdir tree to read-only when testing a package tarball for VPATH
> completeness.

It works as expected if you're working under a non-privileged account.
However, all accounts having the SE_RESTORE_NAME privilege, can create
a directory within a non-writable directory, same as a root user on
Linux.


Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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