delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/03/18:51:08

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
Message-ID: <3EB447CE.3060008@attbi.com>
Date: Sat, 03 May 2003 17:50:54 -0500
From: "Cyber.Zombie" <Cyber DOT Zombie AT attbi DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: NTFS permissions problem
References: <3EB1E5E6 DOT 2050008 AT attbi DOT com>
In-Reply-To: <3EB1E5E6.2050008@attbi.com>

I got everything working...but am still not exactly sure why.  Of note:  
Do not use "Authenticated Users" as the permission mask from what you 
want everything to inherit.

Cyber.Zombie wrote:

> I  have a problematic set of ACLs that is causing Cygwin to not behave 
> (and it's not Cygwin's fault).  I recently had to do a 
> format/reinstall of XP (yes, even with XP it's sometimes easier to 
> just pull the trigger).  In my setup, I only put the OS (and such 
> Microsoft programs that don't ask) on the C partition.  I put 
> programs, data, etc. on D through G.  What I didn't realize was that 
> all user/group SIDs have embedded in them the machine SID.  And that 
> SID changed when I reinstalled.  I discovered the hard way what 
> happens when you don't save that little bit of info.  I finally 
> figured out a way to force the change and/or removal of all ACLs that 
> have invalid SIDs (through the W2K resource utility SUBINACL).  So 
> everything was now pointing to valid SIDs.  But I didn't stop there.  
> I figured that it'd be easier in the future if all files inherited 
> their attributes from the root ACLs
>
> Apparantly, Cygwin does not like this.  I did the standard Setup.exe 
> install.  Then brought up bash.  No /etc/passwd,group files.  No 
> rights to anything.  The following directory listing fragments were 
> found:
>
> bash-2.05b$ ./ls -aln /cygdrive/d/cygwin
> total 2
> d---------    8 400      401             0 Apr 29 23:26 .
> d---------   26 544      544             0 Apr 29 23:13 ..
> d---------    2 400      545             0 Apr 29 23:21 bin
> ----------    1 400      545            57 Apr 29 23:26 cygwin.bat
> ----------    1 400      545           766 Apr 29 23:26 cygwin.ico
> d---------    8 400      401             0 May  1 08:06 etc
> d---------   10 400      545             0 Apr 29 23:21 lib
> d---------    2 400      545             0 Apr 29 23:19 tmp
> d---------   17 400      545             0 Apr 29 23:20 usr
> d---------    6 400      401             0 Apr 29 23:19 var
> bash-2.05b$ ./ls -aln /cygdrive/d
> total 5414
> d---------    2 400      65535           0 Feb 22 10:22 Media
> d---------    2 400      65535           0 Jun 20  2002 My Music
> d---------   35 400      65535           0 Apr 25 02:49 Program Files
> ...
>
> Questions:  Why is everything coming up with no rights?  And I assume 
> the 65535 group entries indicate that I must've missed a couple of 
> SIDs.  But there's nothing in the Windows file/folder security tab 
> (including advanced) that mentions the ownership group -- just the user?
>
>
>
>
> -- 
> 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/
>
>



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