X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com From: "Charles D. Russell" Subject: Re: How to delete a file without owner and group? Date: Tue, 02 Mar 2010 20:46:37 -0600 Lines: 19 Message-ID: References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb AT mail DOT gmail DOT com> <4B8CD744 DOT 4040103 AT cygwin DOT com> <4B8DC7CE DOT 5070807 AT gmail DOT com> Reply-To: worwor AT bellsouth DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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