if user exists __user won't create his home dir #195

Closed
opened 2021-11-20 15:21:12 +00:00 by ungleich-gitea · 2 comments

Created by: tpo

I just ran:

__user johnny --home /var/lib/johnny

discovered, that I should create the user's home dir too, so I changed my code to:

__user johnny --create-home --home /var/lib/johnny

and saw, that __user would now not create the user's home dir.
*t

*Created by: tpo* I just ran: ``` __user johnny --home /var/lib/johnny ``` discovered, that I should create the user's home dir too, so I changed my code to: ``` __user johnny --create-home --home /var/lib/johnny ``` and saw, that __user would now not create the user's home dir. *t
ungleich-gitea 2021-11-20 15:21:12 +00:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

closed

closed
Author
Owner

Created by: telmich

Hmm, yes, this is a nasty bug. So far we rely on useradd to do the heavy lifting, but it is only called if the user does not exist.

So I guess we should use __directory to manage the home directory instead of relying on useradd

*Created by: telmich* Hmm, yes, this is a nasty bug. So far we rely on useradd to do the heavy lifting, but it is only called if the user does not exist. So I guess we should use __directory to manage the home directory instead of relying on useradd
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ungleich-public/cdist#195
No description provided.