How to: Change your root password

Prev Next

The following guide shows how to change your root password on Linux based operating systems


1. Log in to your server as root (or as your user which has sudo privileges)

2. At the command prompt, type "sudo passwd root" and hit 'Enter' 
If you are logged in as root this will take you to step 3, if you are logged in as your user you will need to enter your password when prompted.

3. Enter the new password when prompted, hit 'Enter', and re-enter it at the prompt "Retype new password", and hit 'Enter'.

4. You will see a confirmation "passwd: password updated successfully".

Your password has now been changed