deleting a file
Rolf Kutz
rk at vzsze.de
Wed Jan 9 18:09:41 UTC 2008
On 09/01/08 16:41 +0000, 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?
>(i'm using gutsy 7.10)
Is the filesystem writeable? (check with the mount
command) If so, remount it.
Is the immutable flag set? (check with 'lsattr
thisfile.a') If so, change it with chattr.
Regards, Rolf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080109/76e0ee0c/attachment.sig>
More information about the ubuntu-users
mailing list