How to Make /etc/resolv.conf Immutable with chattr +i
The command 'chattr +i /etc/resolv.conf' is used to set the immutable attribute on the '/etc/resolv.conf' file. This means that the file cannot be modified, renamed, or deleted by any user, including root. It provides an additional layer of security to prevent accidental or unauthorized changes to the DNS resolver configuration file.
原文地址: https://www.cveoy.top/t/topic/o2YM 著作权归作者所有。请勿转载和采集!