deleting a file

Tony Arnold tony.arnold at manchester.ac.uk
Wed Jan 9 16:55:38 UTC 2008


Chris,

Chris Jones wrote:
> 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

There is something else going on here as permissions are ignored when
root accesses files. I'm not sure what though, perhaps the file is in
use by something?

Regards,
Tony.
-- 
Tony Arnold,                        Tel: +44 (0) 161 275 6093
Head of IT Security,                Fax: +44 (0) 870 136 1004
University of Manchester,           Mob: +44 (0) 773 330 0039
Manchester M13 9PL.                 Email: tony.arnold at manchester.ac.uk




More information about the ubuntu-users mailing list