Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 13 May 2003 23:19:00 +0100 From: "Karsten M. Self" To: cygwin AT cygwin DOT com Subject: Re: Nuisance problem with XP file permissions Message-ID: <20030513221900.GE15258@ganymede> Mail-Followup-To: cygwin AT cygwin DOT com References: <201701c3146d$109b7480$6401a8c0 AT SARS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201701c3146d$109b7480$6401a8c0@SARS> X-Debian-GNU-Linux: Rocks X-Kuro5hin-cabal: There is no K5 cabal X-GPG-Fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0 X-uptime: 05:20:50 up 185 days, 20:46, 15 users, load average: 0.03, 0.15, 0.17 User-Agent: Mutt/1.5.4i on Wed, May 07, 2003 at 12:48:27AM -0700, Mike (mike2 AT myhome DOT net) wrote: > I?ve been testing some new stuff where I?ve got apps/scripts creating new > files and directories and I?ve hit a snag with Windows XP and file > permissions. Its probably an easy answer but I?m at a loss with my > experience level with cygwin. > ? > First off, in running Windows XP, I am forced to log in as a user (who has > Administrator rights) and cannot login as user ?Administrator? as I would on > a Win2k box. So, when I installed cygwin, the entire distribution seems to > be owned by me and seemed to have a file permission mask of 0007 ? that is, > all files have --- for ?other? permission bits r-xr-x--- or rw-rw----. This > didn?t initially cause any problems until I started working on a new project > ? specifically, playing around with the new RPM package testing going on in > cygwin-apps. Nevertheless, the first question is ? should the permissions be > something different or is this ?normal?? I did a rather drastic step to > avoid annoying permissions problems and recursively gave world permissions > to the entire distribution ? yeah, I cringed too, but its not a public or > even private server, just a convenience tool box. > ? > So far, no big deal? until I start working with tar files that already have > permissions set that would prevent the non-root user from modifying them. > Specifically, a configure file that untar?d with r?r?r? permissions. > Somewhere in the install process of this tar package something (a higher > level configure or Makefile) calls autoconf/automake/autotool (one of these > ? not important which) to rebuild the configure file. However, with these > permissions and my aforementioned user permissions, I continually get a > ?cannot create configure: permission denied?. > ? > This too isn?t a big deal, I can chmod the file and re-run that specific > configure/makefile and everything is fine. But it strikes me that this > shouldn?t be. If I, the user logged in, have permission to modify a file, > chmod it, chown it, delete it, whatever, why shouldn?t the scripts I run be > able to do the same? XP Pro or XP Home? Do you have "simple file sharing" selected under Windows Explorer? If so, *deselect* it. This borks up file permissions with both Windows *and* Cygwin, IIRC. Peace. -- Karsten M. Self http://kmself.home.netcom.com/ What Part of "Gestalt" don't you understand? Geek for hire: http://kmself.home.netcom.com/resume.html -- 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/