deleting a file

Soo-Hyun Choi s.choi at hackers.org.uk
Thu Jan 10 15:46:52 UTC 2008


Thanks for the reply.

First,
"sudo lsof thisfile.a" returns nothing.

Second,
"thisfile.a" resides in "/" directory - system's root directory.

Third,
root cannot reset the file ownership, nor delete the file.

[code]

[soohyunc at server-01 /] $ ll
total 184
-rw-------   1 root root 14336 2008-01-10 15:41 thisfile.a
drwxr-xr-x   2 root root  4096 2007-10-21 01:24 bin/
drwxr-xr-x   3 root root  4096 2007-12-19 18:16 boot/
lrwxrwxrwx   1 root root    11 2006-02-27 16:10 cdrom -> media/cdrom/
drwxr-xr-x   2 root root  4096 2007-09-16 16:21 debootstrap/
drwxr-xr-x  14 root root 14400 2008-01-09 16:29 dev/
[snipped]

[/code]



In summary, it is still not possible to delete the file.

Thanks,
Soo-Hyun



On Jan 9, 2008 9:11 PM, Nils Kassube <kassube at gmx.net> wrote:

> Paul wrote:
> > On Jan 9, 2008 3:26 PM, Nils Kassube <kassube at gmx.net> wrote:
> > > Soo-Hyun Choi wrote:
> > > > accidentally, i have changed a file permission to 600 with root
> > > > privilege. since then, i cannot delete this file.
> > >
> > > Is the directory of the file writeable?
> >
> > Does the original poster need to give himself ownership of the file
> > with chown?
>
> The owner of a directory may delete any file within that directory, even
> if it is owned by root. However the directory must be writeable for the
> owner of the directory. OTOH, root can delete every file whatever
> permissions the directory has.
>
>
> Nils
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080110/1b004215/attachment.html>


More information about the ubuntu-users mailing list