how to change root password in ubuntu server 18.04 code example
Example 1: default root password ubuntu 18.04
$ sudo passwd
Example 2: passwd root
Step 1: Open a Terminal Window.
Right-click the desktop, then left-click Open in terminal.
Alternately, you can click Menu > Applications > Accessories > Terminal.
Step 2: Change Your Root Password.
In the terminal window, type the following:
- sudo passwd root.