Mac OSX找不到有效的sudoers来源 [英] Mac OSX no valid sudoers sources found

查看:175
本文介绍了Mac OSX找不到有效的sudoers来源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我总是收到此错误.解决方案是什么?

解决方案

错误消息指出:您的/etc/sudoers文件具有错误的权限.

正常权限(在OS X 10.10上)为:

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

所以以其他方式获得根shell并发出chmod 660 /etc/sudoers 和/或适当的chgrp和chown命令.

要获得root shell,这完全取决于您剩下的资产. 故障安全方法将来自恢复分区,但是在大多数情况下,以单用户模式启动就足够了.

单用户模式:引导时按住"Command-S" ref: https://support.apple.com/en-us/HT201573

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

解决方案

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

这篇关于Mac OSX找不到有效的sudoers来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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