Managing Passwords
You need to reset a password, or put an expiration date on it, or you want to set a limit on failed login attempts. Resetting a password is the solution to the perennial "I forgot my password" problem; many Linux administrators think it's a good idea to "expire" passwords, forcing users to change them periodically.
Use passwd to set and configure passwords.
To reset or change a password use:
# passwd aborg
Users can also change their own passwords:
aborg@server04:~$ passwd
This command sets aborg's password to expire after six months, with five days' warning:
# passwd -x 180 -w 5 -i 1 aborg
To view a user's password settings, use:
# passwd -S option
aborg P 02/18/2004 0 10 5 1
You need to reset a password, or put an expiration date on it, or you want to set a limit on failed login attempts. Resetting a password is the solution to the perennial "I forgot my password" problem; many Linux administrators think it's a good idea to "expire" passwords, forcing users to change them periodically.
Use passwd to set and configure passwords.
To reset or change a password use:
# passwd aborg
Users can also change their own passwords:
aborg@server04:~$ passwd
This command sets aborg's password to expire after six months, with five days' warning:
# passwd -x 180 -w 5 -i 1 aborg
To view a user's password settings, use:
# passwd -S option
aborg P 02/18/2004 0 10 5 1
0 Comments