Make a file not overwriteable
Hi, I don't know why, whenever I "touched" my admin network options, it tries to overwrite my /etc/resolve.conf file, and this causes me not able to connect to the www properly. I have to take some time to figure out this problem when it occurs and I have to login as root to edit the file. I wish to make the file not overwriteable. I already chmod the file to 444 only, but it seems still to be able to be overwrited, the system seems to have the power of root. I wonder if I could "fix" the file somehow so that the system can't modify it.
Thanks, Ted |
sudo chmod 0000 /path/to/file ?
|
Code:
chattr +i /etc/resolv.conf Code:
man chattr |
Set the file to be immutable.
Code:
chattr +i /etc/resolv.conf Code:
chattr -i /etc/resolv.conf |
Thanks!
|
I use
Code:
chattr +i cover_image.jpg Code:
id3v2 -a Foreigner * |
All times are GMT -5. The time now is 05:06 PM. |