This looks like a duplicate of LP: #1959375
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to adduser in Ubuntu.
https://bugs.launchpad.net/bugs/1978042
Title:
adduser doesn't support extrausers for group management
Status in adduser package in Ubuntu:
Fix Released
Status in shadow package in Ubuntu:
Fix Released
Status in adduser source package in Focal:
New
Status in shadow source package in Focal:
New
Status in adduser source package in Impish:
Fix Released
Status in shadow source package in Impish:
Fix Released
Status in adduser source package in Jammy:
Fix Released
Status in shadow source package in Jammy:
Fix Released
Status in adduser source package in Kinetic:
Fix Released
Status in shadow source package in Kinetic:
Fix Released
Bug description:
[Impact]
When using adduser --extrausers on Ubuntu Core the command attempts to
use the /etc/group file instead of /var/lib/extrausers/group. e.g. the
following commands will fail:
$ adduser --extrausers user group
$ adduser --extrausers --ingroup group user
[Test Plan]
1. Install libnss-extrausers
2. Add a new group:
$ sudo adduser --extrausers --group test-group
3. Create a new user with this group:
$ adduser --extrausers --ingroup test-group test-user1
4. Create a new user and add them to this group:
$ adduser --extrausers test-user2
$ adduser --extrausers test-user2 test-group
Expected result:
Two new users (test-user1 and test-user2) are successfully added to the
system and are entered in /var/lib/extrausers/{passwd,shadow}.
A new group (test-group) is successfully added to /var/lib/extrausers/group
and contains the new users.
[Where problems could occur]
Existing users of adduser and gpasswd that don't use --extrausers are
unlikely to hit any issues, as their codepath is unchanged.
Existing users that use --extrausers will have a behavior change, but the
existing behavior was to fail so this is unlikely to introduce any new issues.
There is the risk of introducing new bugs by this change, but it has used
since impish without any issues being detected.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/adduser/+bug/1978042/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp