delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/01/16:35:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 1 May 2004 16:34:45 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Black_Ome AT hotmail DOT com
cc: cygwin AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
Subject: Re: Workaround for: "Can't delete some files in XP"
In-Reply-To: <BAY12-DAV2EDYZqB2xy00001d7d@hotmail.com>
Message-ID: <Pine.GSO.4.56.0405011632380.9982@slinky.cs.nyu.edu>
References: <BAY12-DAV2EDYZqB2xy00001d7d AT hotmail DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Sat, 1 May 2004, you (whoever you are) wrote:

> Hi,
>
> I couldn't find too much information on Cygwin in XP where after
> reinstalling XP and having Cygwin on another partition with wrong
> "owner"-accounts.
> Resulting in some files being unable to be deleted, how hard you might be
> trying. (I've tried very hard.)
>
>
> I finally came up with a way to work around;
>
> 1. Browse* to the file that is 'locked' or cannot be deleted. (after trying
> to delete the Cygwin files and getting the "cannot delete"-errors, there
> will only be the locked files left, so you just have to browse a bit.)
>
> 2. Right-Click -> Properties ->  Security
> Here you notice you're locked out, and all options are greyed out,  Your
> previous account that had admin rights to/owned the file is indicated as
> "not found".
>
> 3. Click advanced -> "Owner"-tab, and select the current owner. Hit "apply"
> then "Ok".
> Close out the underlaying menu ("Host Properties" / Security Tab) by
> clicking ok to reload the changed settings.
>
> 4. Rightclick the file(s) again -> Properties -> Security.
>
> You'll notice you now can change the access rights as you desire; Set your
> account to full control and delete the file(s) and hit "ok", then delete the
> files as you desire.
>
>
> *Trying to change permissions for the upmost parent folder in the way
> described above didn't work as desired.
>
> Regards,
> Tim

a) Nothing to do with X -- redirecting to the appropriate list.
b) Try "man chown", especially the "-R" and "--from" options.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019