delorie.com/archives/browse.cgi | search |
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" <worwor AT bellsouth DOT 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 AT mail DOT gmail DOT com> <4B8CD744 DOT 4040103 AT cygwin DOT com> <hmjfle$vj7$1 AT dough DOT gmane DOT org> <4B8DC7CE DOT 5070807 AT gmail DOT com> |
Reply-To: | worwor AT bellsouth DOT net |
Mime-Version: | 1.0 |
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 |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |