How enable root password on Ubuntu
Enabling the Root account is rarely necessary. Almost everything you need to do as an administrator of an Ubuntu system, it can to does via sudo or gksudo. If you really need a persistent Root login, the best alternative is to simulate a Root login shell using the sudo -i command.
Open a Terminal, give the key combination
Ctrl + Alt + T
oder in Ubuntu 18.04.2 LTS (Bionic Beaver) Oben links in der Ecke auf das Symbol klicken
in dem Fenster "Type to search..."
You can enable the root account and set a password with the command
sudo passwd root
1) write on the Terminal
$ sudo passwd root , and press ↩ Enter
- First, it will ask you for your user password,
Give it, and press ↩ Enter
- You will be prompted to enter the new password for the root user,
give a password for your root, and press ↩ Enter write hin on a paper for not forget...
- Repeat the password for root
repeat the password for the root user, and press ↩ Enter .
How to show it
2. Disable root account
To disable the root account, tap
sudo passwd -dl root
will ask for your user password, write it, and press ↩ Enter .