Wrong security attributes. Maybe a bug?
Manuel Wolfshant
wolfy at nobugconsulting.ro
Mon Jan 19 21:13:09 UTC 2009
On 01/19/2009 09:13 PM, Joshua C. wrote:
> How can i make a file "readonly" regardless of its place and other
> attributes? It should be edit only be root and be placed in whatever
> directory it is needed?
On 01/19/2009 11:07 PM, Steve Grubb wrote:
> On Monday 19 January 2009 04:06:26 pm Steve Grubb wrote:
>
>> chattr -i ./foo
>>
>
> whoops...actually, chattr +i ./foo
>
> -Steve
>
actually after chattr +i not even root can modify / delete the file:
[root at wolfy2 tmp]# touch x
[root at wolfy2 tmp]# chattr +i x
[root at wolfy2 tmp]# echo "1" >> x
-bash: x: Permission denied
[root at wolfy2 tmp]# rm x
rm: remove write-protected regular empty file `x'? y
rm: cannot remove `x': Operation not permitted
More information about the fedora-devel-list
mailing list