deleting a file
Chris Jones
jonesc at hep.phy.cam.ac.uk
Wed Jan 9 16:45:47 UTC 2008
Soo-Hyun Choi wrote:
> accidentally, i have changed a file permission to 600 with root
> privilege. since then, i cannot delete this file.
>
> [code]
>
> [soohyunc at server-01 /] $ sudo rm -f thisfile.a
> [sudo] password for soohyunc:
> rm: cannot remove `thisfile.a': Operation not permitted
>
> [/code]
>
> is there any way to delete this file from the system?
just set the permissions back to allow deletion
> sudo chmod a+w thisfile.a
> sudo rm -f thisfile.a
Chris
> (i'm using gutsy 7.10)
>
> thanks,
>
>
>
>
More information about the ubuntu-users
mailing list