passwd
UsersBeginner In real LinuxChange a password
Name: passwd = password
This command needs a real Linux system; you can practise it in real Linux mode.
Description
passwd changes passwords. Ordinary users change only their own and must give the old one; root can change anyone's, lock accounts and force expiry. Hashes are stored in /etc/shadow.
Syntax
passwd [OPTION]... [USER]Common options
| -l / -u | Lock / unlock the account |
| -d / --delete | Remove the password (logging in needs none; careful) |
| -e / --expire | Force a change at next login |
| -x / --maxdays DAYS | Days a password stays valid |
| -S / --status | Show password status |