sudoers 是世界可写错误 [英] sudoers is world writable error

查看:14
本文介绍了sudoers 是世界可写错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 12.10 上更改了/ect 文件权限,以便我可以编辑 bash.bashrc 以便 neo4j 可以看到 JVM,但是现在当我尝试运行 neo4j 服务器时出现错误

I changed the /ect file permissions on Ubuntu 12.10 so that i could edit bash.bashrc so that neo4j can see the JVM but now I am getting errors when i try run the neo4j server

我输入了下面的代码并设法编辑了 bash.bashrc 但现在我根本无法使用 sudo!

I entered the code below and I managed to edit bash.bashrc but now i cant use sudo at all!

sudo chmod -R ugo+rw /ect

sudo -u neo4j /home/neo4j-community-1.8/bin/neo4j start
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

我读了一个论坛,有人说我需要重新安装 ubuntu,我希望不是这样?请帮助!!

I read a forum and a guy said I need to re-insatll ubuntu again, I hope this is not the case? Please HELP!!

推荐答案

我想我已经用这个命令把它整理好了

I think i have sorted it out using this command

pkexec chmod 0440 /etc/sudoers

我现在可以了

sudo -s
root@ubuntu:~#

这是一个足够好的解决方案吗?

Is this a good enough solution to the problem?

这篇关于sudoers 是世界可写错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆