From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20493 invoked by alias); 30 Oct 2003 15:28:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20484 invoked from network); 30 Oct 2003 15:28:05 -0000 Received: from unknown (HELO smtp14.fre.skanova.net) (195.67.227.31) by sources.redhat.com with SMTP; 30 Oct 2003 15:28:05 -0000 Received: from masonit (h187n1fls22o974.bredband.comhem.se [213.64.79.187]) by smtp14.fre.skanova.net (8.12.10/8.12.10) with SMTP id h9UFS3ud000405 for ; Thu, 30 Oct 2003 16:28:04 +0100 (CET) Message-ID: <009301c39efa$f3ca7450$bb4f40d5@masonit> From: "Oskar Enoksson" To: "Cygwin List" References: <6.0.0.22.0.20031029112342.03c24480@127.0.0.1> Subject: Re: Q: cygwin setup problems Date: Thu, 30 Oct 2003 16:34:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-10/txt/msg01772.txt.bz2 > At 11:07 AM 10/29/2003, enok@lysator.liu.se you wrote: >=20 > >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=3Dntsec. > >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! >=20 >=20 > 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= =20 > your previous attempts at "fiddling" with the install tree didn't fare=20 > 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=20 > problems you cause). The two options that I think will work the best for= =20 > you is to simply change the permissions globally to add write and execute= =20 > permissions where appropriate or to simply remove your current=20 > installation and reinstall, making sure that the directory under which=20 > 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 wer= e 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 mentione= d 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 set= up.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/