__group type ignores the --system parameter #382

Open
opened 2026-04-22 03:58:58 +00:00 by mvaldez · 0 comments

Found this problem in Ubuntu Linux 24.04, but I think this affects any OS.

__group type calls "groupadd" in Linux but first test all parameters to check if they are in the list "supported_change_properties" (__group/gencode-remote, lines 79-89) and then replace them with the short version. However, if the parameter is not included in the list "supported_change_properties", it is ignored. As the parameter "system" is not listed there, it is ignored when creating a new group.

The result is that, at least in Ubuntu Linux, the groups are created using GIDs above 1000 rather than from 100 to 999.

Found this problem in Ubuntu Linux 24.04, but I think this affects any OS. __group type calls "groupadd" in Linux but first test all parameters to check if they are in the list "supported_change_properties" (__group/gencode-remote, lines 79-89) and then replace them with the short version. However, if the parameter is not included in the list "supported_change_properties", it is ignored. As the parameter "system" is not listed there, it is ignored when creating a new group. The result is that, at least in Ubuntu Linux, the groups are created using GIDs above 1000 rather than from 100 to 999.
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#382
No description provided.