Project

General

Profile

Actions

Bug #8553

closed

Creating a user as a member of a group fails to add that group to the user

Added by Jim Pingle about 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
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

Also available in: Atom PDF