Add New User with Specific Expire Date
by nikolaymartin - June 08, 2020 at 03:30 PM
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.
you can use -e parameter follow by expire date in YYYY-MM-DD format.

For example, if you want NewUser account to expire June 10th.
useradd -e 2020-06-10 NewUser

if you need more info, just read manual with
man useradd
You can use the -e and -f options like below.
$ useradd -e 2017-02-28 -f 60 john

For more details:

Possibly Related Threads…
Thread Author Replies Views Last Post
Add & Pin Kali Repository on Debian Mizu 0 270 February 15, 2020 at 09:42 PM
Last Post: Mizu

 Users browsing this thread: 1 Guest(s)