Linux Commands Helper
💬 Your AI-powered Linux assistant
passwd Command - Change User Password
The passwd command is used to change a user's password. It can be used by regular users to change their own password or by root to change any user's password.
Syntax
passwd [username]
Examples
passwd
Change your own password.
sudo passwd bob
Change the password for user bob (as root).
Notes
- Passwords are not displayed when typed for security reasons.
- Root can force users to change their password at next login with
passwd -e username
. - For password policies, see
/etc/login.defs
and/etc/pam.d/
.