Score:0

User Expiring Before Creation Date

mr flag

[21:00] Server Message:

Your account has expired; please contact your system administrator.

Why do accounts created with useradd expire at 21:00 and not at the exact time of their creation?

When I create a user using useradd in linux, that user will not expire exactly the next day at the time of creation. it will always expire at 21:00 no matter what time it was created.

I would like to know if it would be possible to change this time from 21:00 to the user creation time or to a specific time.

I'm using the command...

useradd -M -N -s /bin/false $user -e $validity -c $validity
Jaromanda X avatar
ru flag
do we guess the value of `$validity`? though, the manual does state that `The date is specified in the format YYYY-MM-DD` - what timezone are you in? perhaps that's a factor
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.