DEV Community

Jeg
Jeg

Posted on

Creating user with an expiry date in Linux

Steps to create an user with an expiry date in Linux:

sudo useradd -e YYYY-MM-DD username

useradd is a command used to add a new user account.
-e YYYY-MM-DD specifies the expiry date for a new user account.

Reference Link: https://www.geeksforgeeks.org/creating-a-user-with-an-expiry-date-in-linux/

Top comments (0)