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.

chattr +i etcresolvconf

原文地址: http://www.cveoy.top/t/topic/hAcj 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录