How To Change User Password Ubuntu 22.04
Creating a Linux user with a password is one of activities you must do after installing Linux. Therefore, Linux also provides you with ways to change user passwords easily. This tutorial will help you to do it.
Why we should change User password Ubuntu regularly?
- Protect Linux from access gained by Keystroke Loggers
- Preventing the misuse of passwords have been saved
- Limits the number of users that may be hacked at the same time.
Change User password Ubuntu
passwd
is a command that allows you to change user password from the command line. Don’t be put off by the command line’s appearance; it’s really straightforward. The following is an example of how to use this Linux command:
Step 1: Open your Ubuntu Terminal
Like executing other commands, passwd
must also be executed in the terminal, it you didn’t have this tool, you can go to that guide to install it. Therefore, you must open it by using Ctrl-Alt-T
Step 2: Executing command to change User password Ubuntu
Once the terminal appears, we will start asking Linux or Ubuntu to change your User password by typing the command passwd
Step 3: Typing your current password
After executing the above command, the system will ask you to enter the current password, note that the password will not appear on the terminal when you type it, so make sure to type it correctly. You can also use Delete
button if you make mistakes.
Step 4: Type the new User password Ubuntu
After typing your current password, Ubuntu system will ask you to enter the new password you want to switch to. It will ask you to enter password twice to make sure there are no mistakes as you type.
Change Someone’s Password Ubuntu
Similar to changing the your user password, changing the password of another user on the same computer can also be done easily. Just follow these steps
Step 1: Open your Linux Terminal
First, we need to open the Ubuntu terminal to start change user password.
Step 2: Executing the command
After the terminal has loaded, we will need to type this command: sudo passwd {user}
(where {user}
is the name of user you want to change password). Then enter your root (super user) password.
Step 3: Type the new User password
Enter the password you want to change for the other user. Once you’ve entered it, a new password will be applied to that user.
Conclusion
In this article, I showed you to change User password Ubuntu 22.04. If you believe your friend might be interested, please share this post with them. Also, please do not hesitate to contact me by commenting in this tutorial, if you have any questions :D