vim編輯/etc/resolv.conf,提示W10: Warning: Changing a readonly file錯誤(Centos7)


  小問題,記錄下,備用。

 

  vim編輯/etc/resolv.conf,提示

  W10: Warning: Changing a readonly file  錯誤(Centos7)

  使用 lsattr 命令來顯示文件屬性:

  # lsattr /etc/resolv.conf

  ----i-------- /etc/resolv.conf

 

  解決方法:

  # chattr -i /etc/resolv.conf

    參考鏈接:http://www.runoob.com/linux/linux-comm-lsattr.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM