chage -M 30
It would also be wise to warn your users that their account password is about to expire. This can be done by changing the warndays variable shown below.
chage -W 4
To retrieve expiry information about an existing account, use the command below:
chage -l
Maximum: 30
Warning: 4
Inactive: -1
Last Change: Mar 03, 2005
Password Expires: Apr 02, 2005
Password Inactive: Never
Account Expires: Never
Further information on all of the options for the chage and passwd commands can be foudn in the man pages. To view the manual page, issue the commands below at a terminal:
man chage
man passwd
No comments:
Post a Comment