X-Spam-Check-By: sourceware.org Date: Mon, 3 Jul 2006 14:32:37 +0200 From: Corinna Vinschen 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/