commands.sh

passwd

all

Change a user's password. See also: `chpasswd`.

More info →

Options (2)

-S, --statusboolean

Get the current status of the user

Example: passwd {{[-S|--status]}}
-d, --deleteboolean

Make the password of the account blank (it will set the named account passwordless)

Example: passwd {{[-d|--delete]}}

Examples (5)

Change the password of the current user interactively

Change the password of a specific user

sudo passwd username

Get the current status of the user

passwd [-S|--status]

Make the password of the account blank (it will set the named account passwordless)

passwd [-d|--delete]

Set password programmatically (ideal for install scripts)

yes password | passwd
made by @shridhargupta | data from tldr-pages