You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(PUP-12041) Handle libuser's unavailability in Fedora 40
- Starting from version 40, Fedora does not have the lgroup* commands available due to deprecation of libuser: https://fedoraproject.org/wiki/Changes/LibuserDeprecation.
- groupadd relies on libuser to add/purge members to/from groups.
- Add manages_members feature to Fedora 40 and above since groupmod can add members to groups now. Historically, it was unable to do so that's why puppet used lgroupmod for it.
- Handle flags for lgroupmod (-M) and groupmod (-aU) commands properly.
- Only use lgroup* commands if libuser is supported.
- When libuser is not supported, members should be purged using the usermod command. Since usermod does not support comma separated list of users they should be removed one by one.
(cherry picked from commit 6a1db9e)
0 commit comments