If you need an account for a set period of time, or an account that you don't want to deactivate later, add the -e option on useradd:
useradd -m -e 2009-12-01 -c "Temp Account" tempUser
This user account will expire on December 1st, 2009 and will lock the user and their password.
No comments:
Post a Comment