X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: "Charles D. Russell" <worwor@bellsouth.net>
Subject: Re: How to delete a file without owner and group?
Date: Tue, 02 Mar 2010 20:46:37 -0600
Lines: 19
Message-ID: <hmkiha$8eh$1@dough.gmane.org>
References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb@mail.gmail.com> <4B8CD744.4040103@cygwin.com> <hmjfle$vj7$1@dough.gmane.org> <4B8DC7CE.5070807@gmail.com>
Reply-To: worwor@bellsouth.net
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
In-Reply-To: <4B8DC7CE.5070807@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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 3/2/2010 8:22 PM, Dave Korn wrote:

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

Then I've been lucky so far.  After transferring large directory trees 
over a network using Windows file sharing I frequently end up with a few 
files that I can't figure out how to delete under Windows, for some 
reason I can't fathom. The following, in a Cygwin script, fixes the problem:

find . -name '*' -print -exec chmod 777 {} \;

I routinely run Windows with administrative privileges.

I'm just a dumb engineer, not a programmer, and my simple viewpoint is 
that Cygwin is making my Windows box look like a sensible Unix system.


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

