This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to delete a file without owner and group?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 02 Mar 2010 04:15:48 -0500
- Subject: Re: How to delete a file without owner and group?
- References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On 3/1/2010 10:48 PM, Peng Yu 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@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
Does <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids>
answer your question?
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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