restore default root passwd 回到原始帐号密码
The UNIX passwd command is an example; it's a command-line tool with special privileges to change the password (setuid root), but the only thing it can do is change passwords.
UNIX的passwd命令就是一个例子;它是一个具有特定特权的命令行工具,用于修改密码(setuid root),但是它所能做的只是修改密码。
One obvious solution would be to set the user password, configure /etc/sudoers, then run passwd -l root to disable root logins entirely.
那就请修改一下吧。 一种常见的解决方案是设置用户的密码,配置 /etc/sudoers,然后运行 passwd -l root 彻底禁止 root 登录。
Without a username, the passwd command will change the root password.
如果没有用户名,passwd命令将会改变root的密码。
应用推荐