deleting a file

Nils Kassube kassube at gmx.net
Wed Jan 9 21:11:21 UTC 2008


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




More information about the ubuntu-users mailing list