Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Linux only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Linux
Add New User with Specific Expire Date
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Gabriel9999
New Member
Join Date:
Jul 2019
Posts:
15
#1
Add New User with Specific Expire Date
Jun 8 '20, 02:35 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.
SioSio
Contributor
Join Date:
Dec 2019
Posts:
272
#2
Jun 9 '20, 01:11 AM
The -e option of the useradd command specifies an expiration date.
useradd -e YYYY-MM-DD user1
Use the -D option to change the default expiration date.
useradd -D -e YYYY-MM-DD
Comment
Post
Cancel
edizgeorgi
New Member
Join Date:
Oct 2019
Posts:
8
#3
Jun 11 '20, 07:14 PM
You can use the -e and -f options like below.
$ useradd -e 2017-02-28 -f 60 john
Last edited by
Rabbit
;
Jun 11 '20, 07:18 PM
.
Reason:
Removed external link
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment