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 #9346

Merged
merged 1 commit into from
May 21, 2024

Commits on May 15, 2024

  1. (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.
    shubhamshinde360 committed May 15, 2024
    Configuration menu
    Copy the full SHA
    6a1db9e View commit details
    Browse the repository at this point in the history