logoalt Hacker News

johnisgoodyesterday at 8:59 AM3 repliesview on HN

It is not the same, but I do use "chattr +i" on a file (which applies the immutable attribute) on Linux to a file that otherwise would have been overwritten by programs that do not give a damn whether I want it to or not, and in my case it was easier to just make that file immutable, mainly: /etc/resolv.conf.


Replies

claviolayesterday at 2:16 PM

Are you using systemd-resolved? If so, it's actually a symlink to /run/systemd/resolve/stub-resolv.conf, and all you need to do to manage it yourself is to turn it into a regular file of your own. This is explained in the admittedly very long commented out text above the actual directives.

show 1 reply
mmscyesterday at 10:38 AM

.bash_history

show 1 reply
knorkeryesterday at 9:45 AM

[flagged]

show 2 replies