Issue command sudo passwd root.
输入命令sudopasswd root。
You also need to run FSCK as the system administrator, which means Ubuntu users need to create an account from the Ubuntu Live CD by typing sudo passwd root, followed by sudo bash.
你需要以管理员身份运行fsck,这意味着Ubuntu用户需要用UbuntuLiveCD创建一个用户,只需先后键入以下两条命令sudopasswd root, sudo bash。
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命令就是一个例子;它是一个具有特定特权的命令行工具,用于修改密码(setuidroot),但是它所能做的只是修改密码。
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-lroot彻底禁止 root登录。
Without a username, the passwd command will change the root password.
如果没有用户名,passwd命令将会改变root的密码。
So when passwd runs, it will execute as if the root user had launched it with full superuser access, rather than that of the user who ran it.
所以,当passwd运行时,它就会像root用户使用完全的superuser访问一样加载它运行,而不是作为想运行该程序的用户。
Only root can change the password for another user with the passwd command.
只有root用户可以用passwd修改其他用户的密码。
Listing 8 shows that the passwd executable is owned by root.
清单8显示了可执行的passwd由root所有。
Then press Enter, B, and the kernel will boot up to single-user mode. Once here you can run the passwd command, changing password for user root
然后按Enter 和B,内核会启动到单用户模式。
Then press Enter, B, and the kernel will boot up to single-user mode. Once here you can run the passwd command, changing password for user root
然后按Enter 和B,内核会启动到单用户模式。
应用推荐