OS Manuals

/usr/bin/passwd

PAM login and passwd utilities

From shadow 4.20.3-r3 (os), captured 2026-11-05 by running passwd --help (exit 0). permalink

Usage: passwd [options] [LOGIN]

Options:
  -a, --all                     report password status on all accounts
  -d, --delete                  delete the password for the named account
  -e, --expire                  force expire the password for the named account
  -h, --help                    display this help message and exit
  -k, --keep-tokens             change password only if expired
  -i, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -l, --lock                    lock the password of the named account
  -q, --quiet                   quiet mode
  -r, --repository REPOSITORY   change password in REPOSITORY repository
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       directory prefix
  -S, --status                  report password status on the named account
  -u, --unlock                  unlock the password of the named account
  -w, --warndays WARN_DAYS      set expiration warning days to WARN_DAYS
  -x, --maxdays MAX_DAYS        set maximum number of days before password
                                change to MAX_DAYS
  -s, --stdin                   read new token from stdin
Options (16)
OptionDescriptionSource
-a, --allreport password status on all accountshelp
-d, --deletedelete the password for the named accounthelp
-e, --expireforce expire the password for the named accounthelp
-h, --helpdisplay this help message and exithelp
-k, --keep-tokenschange password only if expiredhelp
-i, --inactive INACTIVEset password inactive after expiration to INACTIVEhelp
-l, --locklock the password of the named accounthelp
-q, --quietquiet modehelp
-r, --repository REPOSITORYchange password in REPOSITORY repositoryhelp
-R, --root CHROOT_DIRdirectory to chroot intohelp
-P, --prefix PREFIX_DIRdirectory prefixhelp
-S, --statusreport password status on the named accounthelp
-u, --unlockunlock the password of the named accounthelp
-w, --warndays WARN_DAYSset expiration warning days to WARN_DAYShelp
-x, --maxdays MAX_DAYSset maximum number of days before password change to MAX_DAYShelp
-s, --stdinread new token from stdinhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.