__group type ignores the --system parameter #382
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist#382
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.