delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/02/21:04:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B8DC7CE.5070807@gmail.com>
Date: Wed, 03 Mar 2010 02:22:06 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to delete a file without owner and group?
References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb AT mail DOT gmail DOT com> <4B8CD744 DOT 4040103 AT cygwin DOT com> <hmjfle$vj7$1 AT dough DOT gmane DOT org>
In-Reply-To: <hmjfle$vj7$1@dough.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 02/03/2010 16:51, Charles D. Russell wrote:
> On 3/2/2010 3:15 AM, Larry Hall (Cygwin) wrote:
>>
>> Does <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids>
>> answer your question?
>>
> 
> Is there a short answer, one that does not require understanding how it
> all works?  One thing I like about Cygwin is that I don't have to learn
> anything about Windows.  So far I've always been able to get rid of
> intractable Windows files using Cygwin with chmod 777 and chown, but
> this seems to be an example where that won't work.

  What, are you saying you also have a file called "foo.sh" that you can't
delete?! ;-)

  Cygwin can't override the permissions enforced by the OS.  It attempts to
/use/ those permissions to model the posix user/group/world model, but if a
file was created outside cygwin (i.e. in windows itself) there's no guarantee
the permissions set on it will make sense in the posix world.  So... if you
actually really have the underlying OS permissions to change the access rights
to a file, chown/chmod will work; if you don't, they won't.

    cheers,
      DaveK

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019