Tech Support > Operating Systems > UNIX / Variants > Setting user-specific expiration period for users
Setting user-specific expiration period for users
Posted by qazmlp1209@rediffmail.com on May 15th, 2008


I understand that it is possible to set the expiration period for the
password for the OS users, by setting the MAXWEEKS value in the /etc/
default/passwd file.
But, as this is a systemwide setting, it affects all the users. Is it
possible to set the expiration period user specifically, for example:
3 months for user1, 1 month for user2 and no expiration for user3?

Posted by Oscar del Rio on May 15th, 2008


qazmlp1209@rediffmail.com wrote:
man passwd

passwd -n min -w warn -x max user

man shadow for explanation of values