Re:How to take back control of /etc/resolv.conf on Linux (2018)
by j7k6 on Tuesday March 19, 2019 @06:17PM
(#19436646)
I use `chattr +i` with NFS mountpoints for backups, it prevents the local harddrive from filling up when a network share fails to mount on boot.
Re:How to take back control of /etc/resolv.conf on Linux (2018)
by muxator on Tuesday March 19, 2019 @07:02PM
(#19437038)
Totally. If something is meant to be a mount point, a chattr +i on the underlying directory is a godsend, because it gives you an immediate error in case the mount should fail for whatever reason.
Apparently, they are very file system specific. That's why they are not widely used. I guess a chmod 0444 would not do it, as system tools tend to "fix" wrong permissions automatically (but not permissive attributes).