几周前,我编辑了/etc/resolvconf.conf,添加了以下一行:
name_servers="1.0.0.1 2606:4700:4700::1111,2606:4700:4700::1001"今天,我又重新编辑了它,sudo vim /etc/resolvconf.conf打开了文件只读,用w!重写失败。我试过su和sudo sh -c "vim /etc/resolvconf.conf",但是什么都没有用。
ls -l /etc/resolvconf.conf
-rw-r--r-- 1 root root 320 Jan 4 00:05 /etc/resolvconf.conf这里发生了什么事?这怎麽可能?
发布于 2019-01-23 10:56:26
希望该文件设置为不可变标志。
检查:
lsattr /etc/resolvconf.conf
----i---------- /etc/resolvconf.conf移除不可变标志
chattr -i /etc/resolvconf.confhttps://unix.stackexchange.com/questions/496183
复制相似问题