Public bug reported:

[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.

** Affects: adduser (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: shadow (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: adduser (Ubuntu Focal)
     Importance: Medium
         Status: New

** Affects: shadow (Ubuntu Focal)
     Importance: Medium
         Status: New

** Affects: adduser (Ubuntu Impish)
     Importance: Undecided
         Status: Fix Released

** Affects: shadow (Ubuntu Impish)
     Importance: Undecided
         Status: Fix Released

** Affects: adduser (Ubuntu Jammy)
     Importance: Undecided
         Status: Fix Released

** Affects: shadow (Ubuntu Jammy)
     Importance: Undecided
         Status: Fix Released

** Affects: adduser (Ubuntu Kinetic)
     Importance: Undecided
         Status: Fix Released

** Affects: shadow (Ubuntu Kinetic)
     Importance: Undecided
         Status: Fix Released

** Also affects: adduser (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: adduser (Ubuntu Kinetic)
   Importance: Undecided
       Status: New

** Also affects: shadow (Ubuntu Kinetic)
   Importance: Undecided
       Status: New

** Also affects: adduser (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: shadow (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: adduser (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Also affects: shadow (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Also affects: adduser (Ubuntu Impish)
   Importance: Undecided
       Status: New

** Also affects: shadow (Ubuntu Impish)
   Importance: Undecided
       Status: New

** Changed in: adduser (Ubuntu Impish)
       Status: New => Fix Released

** Changed in: adduser (Ubuntu Jammy)
       Status: New => Fix Released

** Changed in: adduser (Ubuntu Kinetic)
       Status: New => Fix Released

** Changed in: shadow (Ubuntu Impish)
       Status: New => Fix Released

** Changed in: shadow (Ubuntu Jammy)
       Status: New => Fix Released

** Changed in: shadow (Ubuntu Kinetic)
       Status: New => Fix Released

** Changed in: shadow (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: adduser (Ubuntu Focal)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  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     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to