![]() I do log everything you type into the form. Privacy note: This form will forward your IP address, user agent and referrer to the Akismet, StopForumSpam and Botscout spam filtering services. You can add class="your language" to code blocks to help highlight.js highlight them correctly. ![]() You can use Markdown syntax to format your comments.You may want to read the comment guidelines before posting. There are a bunch more attributes listed in the chattr man page though this is the only one I ever seem to find myself using. You can unset the immutable attribute using -i chattr -i nf ![]() Rm: cannot remove ‘/etc/nf’: Operation not permitted Now you cannot change the file at all! $ sudo rm /etc/nf So that now lsattr shows $ lsattr /etc/nf You might need root, deending on the file. You use the chattr command to set the attribute. You can view the current attributes of a file any time using lsattr lsattr nf The immutable attribute means that no user, not even root, can modify the file without also unsetting the attribute. I set the immutable attribute on the file. I turned to a trick that I very rarely use, but which is useful from time to time. It kept overwriting my /etc/nf - the file where you configure what nameservers your system will use.Įven after I uninstalled Network Manger, on rebooot I would find my nf saying it had been generated by Network Manager. Obviously, you will need to put the appropriate content into the file before setting the immutable bit. The other day, I was having some problems with Network Manager (I only ever have problems with it to be honest). rm -f /etc/nf editor /etc/nf chattr +i /etc/nf.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |