X-Recipient: archive-cygwin@delorie.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.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to delete a file without owner and group?
References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb@mail.gmail.com> <4B8CD744.4040103@cygwin.com> <hmjfle$vj7$1@dough.gmane.org>
In-Reply-To: <hmjfle$vj7$1@dough.gmane.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

