This is normal Unix behavior.
When the file is in your directory, you are not allowed to write to it, but
you can rename it or delete it.
Of course this leads to a major security flaw, as user can change his
.profile file and get the more privileges than allowed to him by root. Vsnl
server are/were victim of this flaw ;-().
More over if you want to change the file permission simply copy the file to
different name( it will be owned by you now), delete the original file, and
rename the copied file to original name. And you have all the rights to
original file.
Best Regards,
M.S.Deshmukh,
Director.
Beta Computronics Pvt. Ltd.
Web Site - http://betacomp.com
-----Original Message-----
From: Ghins Mathai <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Saturday, June 03, 2000 7:25 PM
Subject: [LIH] File permissions
>Hello,
>This is a file I had in my home directory;
>-rw-r--r-- 1 root root 633514 Jun 3 18:55 space.usage
>
>When I try writing it, I am not allowed (as no 'w' for others)
>
>[ghins@vikramaditya] ~$ > space.usage
>bash: space.usage: Permission denied
>
>But when I try removing it I can. Why ???
>
>[ghins@vikramaditya] ~$ rm space.usage
>rm: remove write-protected file `space.usage'? y
>[ghins@vikramaditya] ~$
>
>
>
>
>-----------------------------------------------------------------------
>For information on this and other Linux India mailing lists check out
>http://lists.linux-india.org/
>
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH