This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to delete a file without owner and group?


On Mon, Mar 1, 2010 at 9:48 PM, Peng Yu <pengyu.ut@gmail.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@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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]