So 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:
- Login as the user you are wanting to change the password for
- Open a Linux terminal
- In the Linux terminal type
passwdand hit enter
- You will be asked to enter your current Linux password
- Enter your current Linux password, and hit enter
- Next you will be asked to enter your new Linux password
- Enter the new password you want set for your Linux user, hit enter
- Now you will be asked to verify your new Linux password
- Enter your new Linux password again to verify you typed what you think you typed, hit enter
- 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:
- Log in as root or another user
- Open a Linux terminal, if you are not root you can use
suto start using root permissions in your Linux terminal
$usernamewith the username of the Linux user you want to change the password for.
- As root you will not be asked to verify the current Linux password for that username
- 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
- 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!