delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/04/22:52:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <366c6f341003011948m46acfdc7l58a7945e8426bdbb@mail.gmail.com>
References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb AT mail DOT gmail DOT com>
Date: Thu, 4 Mar 2010 21:52:40 -0600
Message-ID: <366c6f341003041952p7f6846cfp6387df3648b9ce82@mail.gmail.com>
Subject: Re: How to delete a file without owner and group?
From: Peng Yu <pengyu DOT ut AT gmail DOT com>
To: cygwin AT cygwin DOT com
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 Mon, Mar 1, 2010 at 9:48 PM, Peng Yu <pengyu DOT ut AT gmail DOT com> wrote:
> I have a file that doesn't have owner and group and hence I can not
> delete it. Could somebody let me know how to delete it?
>
> office AT office-PC /tmp
> $ ll
> total 0
> -rw-r--r-- 1 ???????? ???????? 0 2009-11-28 10:12 foo.sh
>
> office AT office-PC /tmp
> $ chown office foo.sh
> chown: changing ownership of `foo.sh': Permission denied
>
> office AT office-PC /tmp
> $ rm foo.sh
> rm: remove write-protected regular empty file `foo.sh'? y
> rm: cannot remove `foo.sh': Permission denied


I found the problem, which is due to windows 7 security system. See below.

http://www.blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-windows-7.htm

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

- Raw text -


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