Actions
Bug #8553
closed
JP
RB
Creating a user as a member of a group fails to add that group to the user
Bug #8553:
Creating a user as a member of a group fails to add that group to the user
Status:
Resolved
Priority:
Normal
Assignee:
Category:
User Manager / Privileges
Target version:
Start date:
06/06/2018
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.x
Affected Architecture:
All
Description
When creating a user, if a group is selected during account creation, the group is not added to the user at the OS level, and an error is logged:
/system_usermanager.php: The command '/usr/sbin/pw groupmod -l 'admins' -g '1999' -M '0,2020' 2>&1' returned exit code '67', the output was 'pw: user `2020' does not exist'
It would appear the sync process is attempting to add the user to the group before the user exists in a way visible to pw.
This group will not appear on the user in the OS until after a reboot, or after the group is removed and added again.
Adding a group to an existing user works and does not produce an error.
Actions