root 用戶修改文件提示無權限 chmod: changing permissions of ‘authorized_keys’: Operation not permitted

使用 lsattr 命令查看文件的屬性,使用 chattr 命令的修改文件的屬性。解決修改文件提示無權限:

chattr -i <file>
chattr 命令的詳解參考鏈接【3】。

參考鏈接:

1、https://serverfault.com/questions/60711/chown-operation-not-permitted-for-root

2、https://www.webhostingtalk.com/showthread.php?t=569413

3、chattr 和 lsattr 命令詳解

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章