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 Message-Id: <5.1.0.14.2.20020409063153.00add610@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Tue, 09 Apr 2002 07:10:31 -0700 To: "Ulrich Voss" , cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: permission problem after installation under W2K In-Reply-To: <3CB2E440.20401.1B762F@localhost> References: <4 DOT 3 DOT 1 DOT 2 DOT 20020408120148 DOT 023613c0 AT pop DOT ma DOT ultranet DOT com> <3CB1D6E1 DOT 19933 DOT F3CE5B AT localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Ulrich, Check out my response on the "tar won't restore permissions" thread () for notes on setting CYGWIN to include ntsec. CYGWIN must be set before _any_ Cygwin application starts up, because it's only during the DLL initialization that "ntsec" in $CYGWIN is effective. There's another possibility, though it seems like a long shot. Under Unix systems, directories are not usable as such without suitable execute bits (the kernel won't scan them for any lookup purposes, whether to find a target, check for a pre-existing name that is to be created or to traverse on the way to an ultimate target deeper in the hierarchy). It appears by cursory empirical testing, that Cygwin emulates a bit of this behavior. A directory (on NTFS with "ntsec" active) without any execute bits seems to function normally with one exception: It cannot become the current directory: % # Create and populate "tstDir" % % chmod 666 tstDir % % ls -ld tstDir drw-rw-rw- 3 RSchulz None 4096 Apr 9 06:38 tstDir/ % % ls -l tstDir ... [ normal ls output ] ... % % cd tstDir bash: cd: tstDir: Permission denied % % # Same results with sh/ash and tcsh % % mkdir tstDir/newDir % # Succeeds % % # Other tst of file names beginning with tstDir/ succeed So... You might want to check and make sure that your "/home" has execute permissions. Randall Schulz Mountain View, CA USA At 04:53 2002-04-09, Ulrich Voss wrote: >Hi, > > > > > OK. Better go to strace and cygcheck -s -r -v output. Perhaps it's > > just a missing 'ntsec' setting in your CYGWIN environment variable? > >No it's there ... > >--- >$ cygcheck -s -c -v | grep ntsec >CYGWIN = `tty ntsec' >--- > > >Ulrich. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/