How to Change Linux Password with passwd Command

Linux SecuritySo you’ve been searching the internet on how to change your Linux password, how to change password in Linux terminal, or some other phrase related to changing your Linux password. Well changing your Linux password is easy to do. You can change your Linux password either using a GUI (Graphical User Interface) or a CLI (Command Line Interface). I like to use CLI to change my Linux passwords. It just seems easier to me especially if I’m logged in as root Linux user and I’m wanting to change another user’s password.

Anyway to change your own Linux password you will need to follow these steps o change your Linux password easily:

  1. Login as the user you are wanting to change the password for
  2. Open a Linux terminal
  3. In the Linux terminal type passwd and hit enter
  4. You will be asked to enter your current Linux password
  5. Enter your current Linux password, and hit enter
  6. Next you will be asked to enter your new Linux password
  7. Enter the new password you want set for your Linux user, hit enter
  8. Now you will be asked to verify your new Linux password
  9. Enter your new Linux password again to verify you typed what you think you typed, hit enter
  10. Your Linux password is now changed to your new Linux password

If you are logged in as root Linux user and you are wanting to create a new password for a different Linux user, you can follow these steps to change another user’s Linux password:

  1. Log in as root or another user
  2. Open a Linux terminal, if you are not root you can use su to start using root permissions in your Linux terminal
  3. Type passwd $username replace $username with the username of the Linux user you want to change the password for.
  4. As root you will not be asked to verify the current Linux password for that username
  5. You will be asked for the new Linux password, then to type the password for Linux again to verify you typed the correct Linux password
  6. The Linux user’s password is now changed.

I hope this Linux tutorial on how to change your Linux password has helped you change your Linux password or one of your other Linux user’s passwords! You may want to read about choosing a good Linux password, or choosing a good password for any account!

Comment Linux tutorial or Leave a Trackback

Post a Comment

Your email is never published nor shared. Required fields are marked *