1, Ubuntu
The default root password is random, that is, there is a new root password every time you boot. We can enter the command sudo passwd in the terminal, and then enter the password of the current user,
enter,
Simple Application Server
USD1.00 New User Coupon
* Only 3,000 coupons available.
* Each new user can only get one coupon(except users from distributors).
* The coupon is valid for 30 days from the date of receipt.
2. The terminal will prompt us to enter a new password and confirm it. The password at this time is the new root password. After the modification is successful, enter the command su root, and then enter the new password.
3. There is no default analysis, because you have not set a password for root, the first user is in the admin group, so he can set a password for root, so
sudo passwd root
[sudo] password for you :---> Enter your password, it will not be displayed
Enter new UNIX password:
---> set root password
Retype new UNIX password:
--> Repeat
================================================= =======================
Execute in Shell after logging in with the user created during installation
sudo passwd root Enter Password:
Then enter the user password just created and press Enter
Enter new UNIX password:
At this time, enter the root password to be set twice and you will see
password updated successfully!