How to: Change your root password
- 09 Aug 2022
- 1 Minute to read
- Print
- DarkLight
How to: Change your root password
- Updated on 09 Aug 2022
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
Was this article helpful?