Linux Commands Helper

💬 Your AI-powered Linux assistant

chpasswd Command - Update Passwords in Batch

The chpasswd command is used to update passwords in batch mode. It reads a list of username:password pairs from standard input and updates the passwords for those users.

Syntax

chpasswd [options]

Examples

echo "user1:newpass" | chpasswd

Set the password for user1 to 'newpass'.

echo -e "user1:newpass\nuser2:otherpass" | chpasswd

Set passwords for multiple users in one command.

Notes

  • chpasswd is typically used by system administrators for batch password updates.
  • Requires root privileges to run.
  • For interactive password changes, use passwd.

Related Linux Commands:

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame