Question Locked

Add New User with Specific Expire Date

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to add a user account to my linuxbox. But this user will have specific expire time which will be specified at the useradd definition.

1 reply

by amansingh41

You need to add -e option with useradd command like below.

#useradd -e 2014-03-27 aman

-e, --expiredate EXPIRE_DATE expiration date of the new account

This discussion is closed to new replies.