Re: Wrong security attributes. Maybe a bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@wolfy2 tmp]# touch x
[root@wolfy2 tmp]# chattr +i x
[root@wolfy2 tmp]# echo "1" >> x
-bash: x: Permission denied
[root@wolfy2 tmp]# rm x
rm: remove write-protected regular empty file `x'? y
rm: cannot remove `x': Operation not permitted

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux