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 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 On 02/03/2010 16:51, Charles D. Russell wrote: > On 3/2/2010 3:15 AM, Larry Hall (Cygwin) wrote: >> >> Does >> 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