DEV Community

Jeg
Jeg

Posted on

1

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)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay