Be default, the root user account on ubuntu is locked if you have not used SSH key while setting up the server. Your host will either give you an option to enter the password manually while setting up the server or you will receive the password on your registered email address. In case of later, it is a randomly generated password which we recommend to change at the first login itself.
To change the root password in ubuntu server do the following:
1. SSH at root@YOUR_IP_ADDRESS
2. Enter your current password
3. type the following command:
sudo passwd root
You will be asked to enter new password and verify it. Thats all. You have successfully changed your root password.
0 Comments