您不能登录到根帐户(通常,也是如此),也不应登录。请不要忽略此安全预防措施。
If you just want to log in without having any sort of password authentication, that is very easily available to you. If you go to System Settings and click on User Accounts, you'll have this screen displayed to you:
Simply make sure Automatic Login is turned on, and your system will always automatically log you in.
如果您正在谈论绕过对sudo
密码的需求,那仍然可行,但不是一个好主意。在单用户环境中,sudo
主要是一项“健全性检查”,以增加对可能具有潜在危险或使您的系统无法正常运行的任何操作的抵抗力。或者换句话说,它是“是的,我确定自己在做什么”命令。那样,如果禁用sudo
密码强制,则会对恶意软件等开放相当广泛的攻击载体。
如果仍要执行此操作,只需打开终端并输入sudo visudo
。从那里,将此行添加到该User privilege specification
部分:
<your user> ALL=(ALL) NOPASSWD:ALL
确保<your user>
用计算机上的用户名替换。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句