Mac OSX no valid sudoers sources found

倾然丶 夕夏残阳落幕 提交于 2019-12-13 18:44:47

问题


I am always getting this error. What is the solution ?


回答1:


As the error message says: your /etc/sudoers file has the wrong permissions.

the normal permissions (on OS X 10.10) are:

$ ls -l /etc/sudoers -r--r----- 1 root wheel 1293 Sep 19 2012 /etc/sudoers

so get a root shell in some other manner and issue chmod 660 /etc/sudoers and/or the appropriate chgrp and chown commands.

To get a root shell, it all depends on what you have left as assets. The failsafe method would be from a recovery partition, but booting in single user mode should be enough in most cases.

Single user mode: boot holding "Command-S" ref: https://support.apple.com/en-us/HT201573



来源:https://stackoverflow.com/questions/33003847/mac-osx-no-valid-sudoers-sources-found

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