sammlung:passwd

USER - passwd

Mit dem Befehl passwd kann man das Passwort eines Users wechseln.

/etc/passwd
Name:Passwort:User-ID:Group-ID:Komentar:Home:Shel
passwd                            # Ändert das eigene Passwort
passwd UserName                   # Als root kann man jedes Passwprt ändern

Weitere Optonen für das Kommando passwd

 passwd --help
Usage: passwd [OPTION...] <accountName>
  -k, --keep-tokens       keep non-expired authentication tokens
  -d, --delete            delete the password for the named account (root only)
  -l, --lock              lock the password for the named account (root only)
  -u, --unlock            unlock the password for the named account (root only)
  -e, --expire            expire the password for the named account (root only)
  -f, --force             force operation
  -x, --maximum=DAYS      maximum password lifetime (root only)
  -n, --minimum=DAYS      minimum password lifetime (root only)
  -w, --warning=DAYS      number of days warning users receives before password expiration (root only)
  -i, --inactive=DAYS     number of days after password expiration when an account becomes disabled (root only)
  -S, --status            report password status on the named account (root only)
  --stdin                 read new tokens from stdin (root only)

Help options:
  -?, --help              Show this help message
  --usage                 Display brief usage message

Weitere Informationen

man passwd
sammlung/passwd.txt · Zuletzt geändert: von 127.0.0.1