X-Recipient: archive-cygwin@delorie.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
Date: Mon, 1 Mar 2010 21:48:00 -0600
Message-ID: <366c6f341003011948m46acfdc7l58a7945e8426bdbb@mail.gmail.com>
Subject: How to delete a file without owner and group?
From: Peng Yu <pengyu.ut@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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@office-PC /tmp
$ ll
total 0
-rw-r--r-- 1 ???????? ???????? 0 2009-11-28 10:12 foo.sh

office@office-PC /tmp
$ chown office foo.sh
chown: changing ownership of `foo.sh': Permission denied

office@office-PC /tmp
$ rm foo.sh
rm: remove write-protected regular empty file `foo.sh'? y
rm: cannot remove `foo.sh': Permission denied

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

