public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Q: cygwin setup problems
@ 2003-10-29 17:02 enok
  2003-10-29 18:22 ` Larry Hall
  0 siblings, 1 reply; 5+ messages in thread
From: enok @ 2003-10-29 17:02 UTC (permalink / raw)
  To: cygwin


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!

regards
/Oskar

/*              Oskar Enoksson, Linkoping, Sweden                  */

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Q: cygwin setup problems
  2003-10-29 17:02 Q: cygwin setup problems enok
@ 2003-10-29 18:22 ` Larry Hall
  2003-10-30 16:34   ` Oskar Enoksson
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall @ 2003-10-29 18:22 UTC (permalink / raw)
  To: enok, cygwin

At 11:07 AM 10/29/2003, enok@lysator.liu.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.



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Q: cygwin setup problems
  2003-10-29 18:22 ` Larry Hall
@ 2003-10-30 16:34   ` Oskar Enoksson
  2003-10-30 17:11     ` Larry Hall
  0 siblings, 1 reply; 5+ messages in thread
From: Oskar Enoksson @ 2003-10-30 16:34 UTC (permalink / raw)
  To: Cygwin List

> At 11:07 AM 10/29/2003, enok@lysator.liu.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?

Regards
/Oskar

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Q: cygwin setup problems
  2003-10-30 16:34   ` Oskar Enoksson
@ 2003-10-30 17:11     ` Larry Hall
  2003-10-30 20:42       ` Oskar Enoksson
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall @ 2003-10-30 17:11 UTC (permalink / raw)
  To: Oskar Enoksson, Cygwin List

At 10:31 AM 10/30/2003, Oskar Enoksson you wrote:
>> At 11:07 AM 10/29/2003, enok@lysator.liu.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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Q: cygwin setup problems
  2003-10-30 17:11     ` Larry Hall
@ 2003-10-30 20:42       ` Oskar Enoksson
  0 siblings, 0 replies; 5+ messages in thread
From: Oskar Enoksson @ 2003-10-30 20:42 UTC (permalink / raw)
  To: Cygwin List

> At 10:31 AM 10/30/2003, Oskar Enoksson you wrote:
> >> At 11:07 AM 10/29/2003, enok@lysator.liu.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.

Thanks again for response and hints. 

Many windows security gurus recommend removing "everyone" group access rights on NTFS root directory and replacing it by "verified users" group to improve security (that's what I had done). This caused problems with cygwin setup. Mystery solved.

/Oskar


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-10-30 19:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-29 17:02 Q: cygwin setup problems enok
2003-10-29 18:22 ` Larry Hall
2003-10-30 16:34   ` Oskar Enoksson
2003-10-30 17:11     ` Larry Hall
2003-10-30 20:42       ` Oskar Enoksson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).