Name

passwd — stdin  stdout  - file  -- opt  --help  --version

Synopsis

passwd [options] [username]

The passwd command changes a login password, yours by default:

$ passwd

or another user’s password if run by the superuser:

# passwd smith

passwd does have options, most of them related to password expiration. Use them only in the context of a well-thought-out security policy.

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.