How to Change Password in Linux?

In this tutorial, we will explain the procedure to change password in Linux via SSH.

#1. How to Change password as user via SSH?

  • Login to SSH with the required credentials.
  • Execute the below given command.
passwd
  • It will ask you to enter your current password. 
  • Then prompts for New Password. Create a new password and re-type to confirm.
You will receive a confirmation message.

#2. How to Change Password as root user?

  • Login to SSH with root credentials.
  • Execute the below given command.
passwd [username]

*Replace the [username] with the cPanel username of which you want to change the password.

  • Create New Password and re-type to confirm it. Then you will receive a confirmation message.
password updated successfully

#3. How to Manage Force Password Change via SSH?

  • Execute the following command from root terminal.
passwd --expire [username]

*Replace [username] with cPanel username of which you want force password change.

  • You will receive the confirmation message as:
Expiring password for user abc.
passwd: Success
That's it !
Check the blog to get in detailed procedure to change password in Linux.
  • how to change cPanel user password via SSH, how to manage the password as cPanel user, how to change password in Linux, how to manage force password change, how to do force password change via SSH, how to change password with root access, how to manage the password of all the cPanel users via SSH, how to change password as cPanel user
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH. #1. Block An IP Address from SSH First of all,...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...