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

Handle groupadd in Ubuntu 24.04 #9503

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jiwonaid
Copy link

Hi team,

May I inquire about the groupadd enhancement in Ubuntu 24.04? Below is the content.
Closes: #9502

  • Starting from Ubuntu 24.04, the shadow package has been upgraded to 4.13: https://launchpad.net/ubuntu/+source/shadow.
  • groupadd and groupmod commands can now modify members.
  • Add manages_members feature to Ubuntu 24.04 and above.
root@dev:~# groupadd --help
Usage: groupadd [options] GROUP

Options:
  -f, --force                   exit successfully if the group already exists,
                                and cancel -g if the GID is already used
  -g, --gid GID                 use GID for the new group
  -h, --help                    display this help message and exit
  -K, --key KEY=VALUE           override /etc/login.defs defaults
  -o, --non-unique              allow to create groups with duplicate
                                (non-unique) GID
  -p, --password PASSWORD       use this encrypted password for the new group
  -r, --system                  create a system account
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DI        directory prefix
  -U, --users USERS             list of user members of this group
      --extrausers              Use the extra users database

root@dev:~# groupmod --help
Usage: groupmod [options] GROUP

Options:
  -a, --append                  append the users mentioned by -U option to the group
                                without removing existing user members
  -g, --gid GID                 change the group ID to GID
  -h, --help                    display this help message and exit
  -n, --new-name NEW_GROUP      change the name to NEW_GROUP
  -o, --non-unique              allow to use a duplicate (non-unique) GID
  -p, --password PASSWORD       change the password to this (encrypted)
                                PASSWORD
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -U, --users USERS             list of user members of this group

- Starting from Ubuntu 24.04, the shadow package has been upgraded to 4.13: https://launchpad.net/ubuntu/+source/shadow.
- `groupadd` and `groupmod` commands can now modify members.
- Add manages_members feature to Ubuntu 24.04 and above.
@jiwonaid jiwonaid requested a review from a team as a code owner October 17, 2024 09:05
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

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.

Handle groupadd in Ubuntu 24.04
2 participants