•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  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
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • 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
  • Scientific Linux and its features
  • Top Encryption Software For Windows
  • What Scientific Linux is and its features
  • Linux File Permissions Cheat Sheet
  • How to setup a Dedicated Server for Terraria
  • Operating System Installation through client area
  • Change Logs
  • How To Remotely Connect To Windows Server?
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company