Environment:
ubuntu 20.04 LTS version
Questions:
How to set root password after installation of ubuntu 20.04 LTS
How: Method.
Use the command line sudo passwd to set the root password
The command line is as follows.
www@ubuntu:~$ sudo passwd
[sudo] password for www:
New password:
Retype new password:
passwd: password updated successfully
www@ubuntu:~$ su root
Password:
root@ubuntu:/home/www#
Description.
[sudo] password for www: enter the password for the current user
New password: Enter the password for root
Retype new password: Confirm the password for root
www@ubuntu:~$ su root Switch to the root user
Password: Enter the password you just set for root
root@ubuntu:/home/www# Successfully switched to the root user
done!
Similar Posts:
- Solutions to Ubuntu forgetting password and root password
- [Solved] Linux: ‘readonly’ option is set add-command line save error
- [Solved] Docker ERROR: Couldn’t connect to Docker daemon at http+docker://localunixsocket – is it running?
- Mysqldump backup problems got error: 1045, error 1045 (28000), got error: 1449
- Solving the problem of “authentication token is no longer” in crontab
- [Solved] Forbid root, handle error sudo must be owned by uid 0
- [Solved] Ubuntu mariadb root access denied after mysql_secure_installation
- E09 Error: sudo: effective uid is not 0, is sudo installed setuid root?
- [Solved] after installing Ubuntu 16.04, you cannot enter the graphical interface after restarting (error/dev/sda2: clean…)