sudoers is world writable error [closed]

六眼飞鱼酱① 提交于 2019-12-21 07:28:22

问题


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

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

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


回答1:


I think i have sorted it out using this command

pkexec chmod 0440 /etc/sudoers

I can now do

sudo -s
root@ubuntu:~#

Is this a good enough solution to the problem?



来源:https://stackoverflow.com/questions/13951700/sudoers-is-world-writable-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!