LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Immutable Bits (https://www.linuxquestions.org/questions/linux-general-1/immutable-bits-128000/)

Geeky_Kid 12-22-2003 02:58 AM

Immutable Bits
 
Hi,

I came across Immutable bits when I did a:

rm /etc/init.d/network

and got a:

rm: remove write-protected file `/etc/init.d/network'? y
rm: cannot unlink `/etc/init.d/network': Operation not permitted


Then someone suggested me to set the immutable bit.

How should this be done? But more importantly what are immutable bits and why do we need them? URLs would help.

:newbie:

TheOneKEA 12-22-2003 05:58 AM

Did you try deleting this file as an ordinary user? If you did, then it failed not because of the immutable bits, but because the /etc/init.d directory is owned by root, and that prevents you from deleting files inside of it.

As for immutable bits, see "man chattr".


All times are GMT -5. The time now is 12:28 PM.