Showing posts with label useradd. Show all posts
Showing posts with label useradd. Show all posts

Wednesday, April 1, 2009

Add an temporary user account

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.