delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/30/11:45:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.0.22.0.20031030113234.03c32110@127.0.0.1>
X-Sender:
Date: Thu, 30 Oct 2003 11:43:31 -0500
To: "Oskar Enoksson" <enok AT lysator DOT liu DOT se>, "Cygwin List" <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: Q: cygwin setup problems
In-Reply-To: <009301c39efa$f3ca7450$bb4f40d5@masonit>
References: <Pine DOT GSO DOT 4 DOT 51L2 DOT 0310291654480 DOT 23710 AT nazgul DOT lysator DOT liu DOT se>
<6 DOT 0 DOT 0 DOT 22 DOT 0 DOT 20031029112342 DOT 03c24480 AT 127 DOT 0 DOT 0 DOT 1>
<009301c39efa$f3ca7450$bb4f40d5 AT masonit>
Mime-Version: 1.0

At 10:31 AM 10/30/2003, Oskar Enoksson you wrote:
>> At 11:07 AM 10/29/2003, enok AT lysator DOT liu DOT se you wrote:
>> 
>> >When I run setup.exe to install new packages the process hangs when
>> >copying the files into the file system. The reason is that setup creates
>> >all directories and files as write protected (dr--r--r--) and then fails
>> >to fill the newly created directory with files (because of the write
>> >protection).
>> >
>> >What is the problem?
>> >
>> >My platform is Windows 2000 with NTFS file system. I use CYGWIN=ntsec.
>> >After installing the initial cygwin packages I noticed that all files
>> >had protection rwxrwxrwx. I changed that of course and now all files are
>> >instead created r--r--r--. Why? Please help!
>> 
>> 
>> It's a Windows thing.  By default, children of a parent automatically
>> inherit the permissions of the parent.  You can change that of course but 
>> your previous attempts at "fiddling" with the install tree didn't fare 
>> very well so I wouldn't recommend you do more experimentation here (unless
>> you plan to live with the consequences and/or find the solutions to the 
>> problems you cause).  The two options that I think will work the best for 
>> you is to simply change the permissions globally to add write and execute 
>> permissions where appropriate or to simply remove your current 
>> installation and reinstall, making sure that the directory under which 
>> you're installing Cygwin has reasonably open permissions.
>
>Thanks for responding. My problem is that even if I deleted the root cygwin directory and let setup.exe reinstall everything, the file permissions were still completely wrong (as shown by ls -l).
>
>However, today I tried to first create the root cygwin directory manually (E:\cygwin) and then change the permissions in windows for that directory to include "Everyone". After that it seems that setup.exe is able to install everything with correct permissions and all.
>
>But I'm still not sure what was the problem. What file permission settings must be fulfilled for the parent directory of cygwin root? Is that mentioned in the documentation somewhere? Why can't setup.exe fix those permissions when creating the cygwin root directory? Could this be a bug in cygwin setup.exe?


Default permissions are generally fine, unless they've been changed to be
very restrictive or the user installing doesn't have the appropriate 
permissions or groups.  Adding "Everyone" to the parent directory permissions
is arguably the easiest way to make sure everything works.  This isn't a 
bug, though it is an annoyance in cases where the defaults aren't 
appropriate.  I'm sure a patch to setup to make these fringe cases work
more smoothly would be thoughtfully reviewed and considered.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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