阿里云的root依然没权限改到 /etc/profile ,chmod chattr 都不行

qazwsxhai 2016-06-23 10:42:55
阿里云的root依然没权限改到 /etc/profile ,chmod chattr 都不行


chmod u+x /etc/profile

chattr -i /etc/profile

依然没有权限修改该文件。 怎么回事呢。 也没有挂载。
...全文
638 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
悟能的师兄 2019-02-25
  • 打赏
  • 举报
回复
新增我也遇到这个问题,这阿里云不知道搞啥么飞机,重要的配置改不了
流泪熊猫头 2019-02-25
  • 打赏
  • 举报
回复
提示不是说的很清楚了嘛…… 有两种情况,另一程序在编辑同一文件,或之前你的编辑会话还没结束。结束或者继续上一次编辑
qazwsxhai 2016-06-24
  • 打赏
  • 举报
回复
修改提示这个 -- INSERT -- W10: Warning: Changing a readonly file E325: ATTENTION Found a swap file by the name ".profile.swp" owned by: root dated: Thu Jun 23 21:47:02 2016 file name: /etc/profile modified: YES user name: root host name: iZ23qeritb6Z process ID: 26477 While opening file "profile" dated: Fri Jun 24 09:37:13 2016 NEWER than swap file! (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r profile" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".profile.swp" to avoid this message.
uncleflour 2016-06-24
  • 打赏
  • 举报
回复
1、你用vi编辑器打开了/etc/profile没有正常关闭 2、chmod +w /etc/profile w是写权限,x是执行权限

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧