X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=AWL,BAYES_00,BOTNET,DATE_IN_FUTURE_03_06 X-Spam-Check-By: sourceware.org Message-id: <4B8CD744.4040103@cygwin.com> Date: Tue, 02 Mar 2010 04:15:48 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to delete a file without owner and group? References: <366c6f341003011948m46acfdc7l58a7945e8426bdbb AT mail DOT gmail DOT com> In-reply-to: <366c6f341003011948m46acfdc7l58a7945e8426bdbb@mail.gmail.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/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 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 Does 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