Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 7.x] (PUP-12041) Handle libuser's unavailability in Fedora 40 #9355

Merged
merged 1 commit into from
May 21, 2024

Conversation

github-actions[bot]
Copy link

Description

Backport of #9346 to 7.x.

 - 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)
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@mhashizume mhashizume closed this May 21, 2024
@mhashizume mhashizume reopened this May 21, 2024
@mhashizume mhashizume merged commit fdb2266 into 7.x May 21, 2024
18 of 23 checks passed
@mhashizume mhashizume deleted the backport-9346-to-7.x branch May 21, 2024 22:59
@joshcooper joshcooper added the bug Something isn't working label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants