How to Change Password on Linux PC – Guide

To keep your data safe, it is important to use a strong password. Passwords that are easy to guess or that have been leaked before make it easier for hackers - after all, it’s not hard to crack a user account if “password123” is your password. For this reason, it’s important to change your password regularly, even on more secure operating systems like Linux. Fortunately, changing your password on Linux is a simple process. You can change your password (or other users’ passwords) locally or remotely using the terminal, or set expiration dates to force other users to change it the next time they log in. Therefore, you must change a user password for each Linux distribution. ..

  1. Log in to your Linux PC as the new user
  2. Type the following command at a shell prompt: passwd -a
  3. The password change process will start and take a few minutes to complete
  4. After the password change process is complete, you will be able to log in as the new user
  5. To reset your linux password, type the following command at a shell prompt: resetpass

How to Change your Linux password

passwd This command will show you your current password and ask you to change it. You can either type in a new password or use an existing one. If you choose to use an existing password, it will be updated automatically. If you type in a new password, you will have to enter it in completely and then press return.

Type “open terminal” and hit enter.

The passwd command is used to change the password for a user.

When prompted, enter your current user password.

Your new password is: password

The password is: password

Close the terminal window. The new password will take effect immediately. ..

Final note

This guide will show you how to change your Linux password. ..