Skip to content
mybox Help Center

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
mybox.com All services operational
/

Language

  • English
  • Română
  • mybox panel
  • Webmail
Start free
/
  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
  • Help Center
  • mybox.com
  • English
  • Română
All services operational Start free
  1. Help Center
  2. Security & SSL
  3. Account & Password Security
Explainer Security & SSL

SSH Commands – passwd

Updated May 30, 2026 1 min read
On this page
  1. How the command works
  2. Changing a password
  3. Changing another user’s password
  4. Password requirements
  5. Practical use cases
  6. Practical implications
  7. Summary

The passwd command is used to change a user password in a Linux system through SSH. It updates the authentication credentials for the current user or another system user (depending on permissions).

It is commonly used for improving account security or resetting access credentials on a server.

How the command works

The basic structure is:

passwd

When executed without additional parameters, the command changes the password of the currently logged-in user.

Changing a password

After running the command, the system will prompt for input:

  1. Enter the current password
  2. Enter the new password
  3. Confirm the new password

If all inputs match and meet system requirements, the password is updated immediately.

Changing another user’s password

If you have sufficient privileges (for example, root access), you can change another user’s password:

passwd username

Replace username with the target account name.

Password requirements

Depending on system configuration, the new password may need to meet certain rules such as:

  • minimum length requirements
  • complexity rules (letters, numbers, symbols)
  • avoidance of common or previously used passwords

Practical use cases

The passwd command is commonly used for:

  • resetting lost or compromised passwords
  • updating credentials for security reasons
  • managing multiple system users on a server
  • enforcing access control policies

Practical implications

Password changes take effect immediately. The next login attempt must use the new password.

If SSH key authentication is enabled, password changes do not affect key-based access.

Incorrect password changes or forgotten credentials may temporarily block access to the account until reset through the hosting panel or support tools.

Summary

The passwd command allows users to change their system password directly from SSH. It is a core security tool used for managing access to a Linux environment.

Was this article helpful?

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.

Helpdesk 24/7 Open a ticket in the mybox panel mybox panel Log in and manage your services

On this page

  1. How the command works
  2. Changing a password
  3. Changing another user’s password
  4. Password requirements
  5. Practical use cases
  6. Practical implications
  7. Summary

Related articles

All in Account & Password Security
How-to Account & Password Security FTP client – How to take care of security? When using FTP clients to manage your website files, it is important to follow security best practices to protect your hosting account… 2 min read How-to Account & Login Management How do I set up 2FA in the mybox panel? Two-factor authentication (2FA) adds a second verification step when logging in to the mybox panel. After entering your password, the panel asks… 1 min read How-to WebMail mail.mybox.com How do I set up two-step verification in Webmail? Security is a priority today, and two-step verification, which requires not only knowing and providing a password, but also a one-time code,… 2 min read
mybox

Modular web hosting – free out of the box, modular to grow.

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online

mybox

  • mybox.com
  • mybox panel
  • Webmail
  • Helpdesk 24/7
© 2026 mybox 1,680 articles