Programme I,
Ubuntu Desktop system after installation switch to the root user method:
: ~$ sudo-s-H
Use the above command to switch to the root user
Under root user, use the following command:
:/# passwd
Set the root user's password
Modifying the root password of the Ubuntu system by using the above method can be done by the following command:
: ~$ su Root
Then enter the root password to switch users to the root user
Programme II,
This method on the Internet a lot of netizens are using this method is relatively simple
Users who have installed the Ubuntu system after installing it will use the following command:
: ~$ sudo passwd root
You will then be prompted to enter the current user's password
You will be prompted to enter a new UNIX password two times.
After entering the same password two times, you will be prompted to modify successfully
After that, you can use
: ~$ su Root
command to enter the root user
Ubuntu Desktop system after installation switch to root user and set root password