[Bug 1978042] Re: adduser doesn't support extrausers for group management

Robert Ancell 1978042 at bugs.launchpad.net
Fri Jun 10 04:43:56 UTC 2022


Ugh, turns out I don't need to SRU these back to focal - we will be
using Ubuntu Core 22 which already includes these changes. Sorry for the
noise.

** Changed in: shadow (Ubuntu Focal)
       Status: In Progress => Won't Fix

** Changed in: adduser (Ubuntu Focal)
       Status: In Progress => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shadow 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:
  Won't Fix
Status in shadow source package in Focal:
  Won't Fix
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. Edit /etc/nsswitch.conf to use extrausers as shown in /usr/share/doc/libnss-extrausers/README
  3. Add a new group:
  $ sudo adduser --extrausers --group test-group
  4. Create a new user with this group:
  $ sudo adduser --extrausers --ingroup test-group test-user1
  5. Create a new user and add them to this group:
  $ sudo adduser --extrausers test-user2
  $ sudo 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




More information about the foundations-bugs mailing list