关于etc sudoers is world writable问题的解决
来源:互联网 发布:卡廷事件 知乎 编辑:程序博客网 时间:2024/06/07 23:32
本人linux小白,本想通过ftp上传个文件,就用root用户chmod 777 -R 更改了etc文件夹下的所有文件的权限,当然包括sudoers的权限,废话少说,直接正题。
1 重启虚拟机一直按住shift出现下面界面
2进入第二个选项出现如下界面(进入recovery模式)
3进入下面界面进入root
4现在不能直接进行chmod进行sudoers文件的权限修改,起初我也是难住了,怎么都改不了,后来查看相关博客看到这个“以recovery模式进入的root用户只有read-only权限,所以需要 mount -o remount,rw / 把写权限加上”
敲完上面那个命令后 在敲 chmod 0440 /etc/sudoers 就完成了,重启虚拟机进入正常模式就可以了。
0 0
- 关于etc sudoers is world writable问题的解决
- 怎样解决 “sudo: /etc/sudoers.d is world writable”
- ubuntu 出错 /etc/sudoers is world writable
- ubuntu 出错 /etc/sudoers is world writable
- 报错sudo: /etc/sudoers is world writable
- 进行各种文件的权限设置时 sudo:sudo /etc/sudoers is world writable
- error : sudo /etc/sudoer is world writable
- error : sudo /etc/sudoer is world writable
- MAC下解决sudo: /etc/sudoers is owned by uid 501, should be 0的问题
- MAC下解决sudo: /etc/sudoers is owned by uid 501, should be 0的问题
- 解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- 解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
- MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
- Warning: World-writable config file '/etc/my.cnf' is ignored
- Warning: World-writable config file '/etc/my.cnf' is ignored
- Warning: World-writable config file '/etc/my.cnf' is ignored
- 解决ubuntu里面的sudo: /etc/sudoers is mode 0640, should be 0440
- c# ComboBox输入自动筛选功能
- 遍历集合求最小值
- pl/sql developer中用execute调用存储过程弹出‘无效的sql语句’解决方法
- Google Gson 字段过滤:自定义过滤规则
- IOS 数据持久化(一)—— plist 存储
- 关于etc sudoers is world writable问题的解决
- Spring Filter过滤器,Spring拦截未登录用户权限限制
- Ejabberd启动梳理及相关文件介绍
- 热更新Tinker的初次集成使用
- 上传android lib到jcenter库上面碰到的一些问题,以及解决办法
- git 查看某个文件的修改历史
- SpringMVC第一个小例子(集成日志工具)
- smartgit需要序列号
- 前端资源汇总