$ passwd
Change user password
DOCUMENTEDUsers & permissionsUbuntu 24.04 LTS baseline
Use care. This command changes account password information. Administrative use can change another user's ability to authenticate.
Synopsis
passwd [options] [LOGIN]
What it does
- `passwd` changes account authentication information for a user.
- Changing another user's password requires appropriate privileges.
Examples
Change your password
passwdChange another user's password as an administrator
sudo passwd aliceImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.