现在的位置: 首页 > 综合 > 正文

mac os X下使用root用户

2018年02月02日 ⁄ 综合 ⁄ 共 219字 ⁄ 字号 评论关闭

 在mac os X下使用su指令想暂时切入root用户下,输入密码会发现无法

登陆root用户。这是因为默认情况下root用户密码未被设置,先用passwd

命令来设置一下:

passwd root

Changing password for root.
Old Password:
New Password:
Retype New Password:
passwd: authentication token failure

提示失败,就用sudo: sudo passwd root

抱歉!评论已关闭.