How to: Change your root password
  • 09 Aug 2022
  • 1 Minute to read
  • Dark
    Light

How to: Change your root password

  • Dark
    Light
  • New

Article Summary

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?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses