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

(PUP-12041) Handle libuser's unavailability in Fedora 40 #9357

Closed

Conversation

shubhamshinde360
Copy link
Contributor

  • 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)

 - 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)
@shubhamshinde360 shubhamshinde360 requested a review from a team as a code owner May 21, 2024 09:50
@shubhamshinde360 shubhamshinde360 changed the title [Backport-7.x] (PUP-12041) Handle libuser's unavailability in Fedora 40 (PUP-12041) Handle libuser's unavailability in Fedora 40 May 21, 2024
@joshcooper
Copy link
Contributor

Dup of #9355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants