|
|
To set an expiration date when creating an account, use the
command:
useradd -e mm/dd/yy login_name
where mm, dd, and yy are digits representing the month day, and year (as in 12/31/99 for December 31, 1999). To add an expiration date, or extend an already established date, substitute the usermod(1M) command for useradd(1M).
To set a default expiration date used for all new accounts,
set the EXPIRE parameter in /etc/default/useradd
using the
System Defaults Manager
or the
defadm(1M)
defadm useradd EXPIRE=mm/dd/yy