removed old users and group before creating new ones#134
removed old users and group before creating new ones#134tobias-m wants to merge 2 commits intosaltstack-formulas:masterfrom tobias-m:fix_user_group_conflicts
Conversation
|
Wouldn't it be more sensible to create new users first? |
|
It's not possible to create a user or group if the correspondig id already exists, which might be the case if UID and GID are self defined and not auto assigned. If you worry about inherited files, you can set force during user removal. |
|
I wasn't talking about the home directory here but other things in the filesystem, say write access to something in |
|
From my point of view, there should be no files outside of users home folder (talking about non system users) owned by them to prevent your described problem resulting in several other problems. Files inside |
|
Hi @tobias-m Can you fix the conflict? thx |
|
ping @tobias-m |
We need to ensure that old users and groups are deleted first, before creating new ones. Otherwise user ids und group ids can conflict.