•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

How to change user password in Linux?

  • Home
  • Client
  • Qa Forum
  • How to change user password in Linux?

Posted By: James | 1 Replies | Last Reply On: Nov 09, 2021 12:17:14

How do i change the linux user password? 

Kunal

Votes: 0Posted On: Nov 09, 2021 12:17:14
 

You can change your own password or if you are an Admin or a user with Sudo privileges, you are allowed to change passwords for other users as well. In Linux, you can change the password of a user account with the 'passwd' utility. As a regular user, you can only change your own password.

To change your own user’s account password, run the passwd command without any arguments:

# passwd

Now, you need to enter your old password, as this is to prevent others from changing your password. Next, you need to enter the new password twice and make sure that your password meets the complexity rules.

Output

Changing password for user john_doe
(current) UNIX password:
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

 

Make sure to meet the following minimal password requirements:

- A password must be strong: at least six or eight characters or more is better.
- Make sure to use complex passwords by mixing letters, numbers, and other characters to make the password as hard to guess.
- Use upper and lowercase letters to make the password harder to crack by an attacker.
- Make sure to avoid using any dictionary word as a password, because attackers use a brute-force password cracker to scan the whole contents of a dictionary, and if your password is in the dictionary, they can easily crack it.


If you are a system admin with root user access, you can change the password of other system users by typing the passwd command followed by the name of the user whose password you want to change.

# passwd john_doe

Output

Changing password for user john_doe
New password:
Retype new password:
passwd: all authentication tokens updated successfully.


Note: As a root user, you will not be asked for current password of the user.

Was this reply helpful?

Related topics

  • How to change the password through Remote Desktop (RDP)
  • How to change cpanel password from WHM?
  • How to set or change user passwords with ldappasswd?
  • How to change root password in linux?
  • Delete User In Linux
  • Multi-Factor Authentication (MFA): A must for your account security!
  • Basic and useful Linux commands
  • Top Encryption Software For Windows
  • Mirai DDoS attacks- Then and Now
  • Linux File Permissions Cheat Sheet
  • CDN and Load Balancer: Ultimate combination for efficient content delivery
  • How to setup a Dedicated Server for Terraria
  • cVirtual Connect from Windows
  • Deploy Psychz Dedicated Server Using Terraform Provider
  • Change Logs
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801