[Bug 2063200] Re: useradd --extrausers --groups tries to lock /etc/group

Simon Chopin 2063200 at bugs.launchpad.net
Wed May 22 11:36:50 UTC 2024


I opted for the "quickfix" approach, as it has the merits of minimizing
the changes to the "normal" codepaths, thus reducing the risks of
regressions for non-core users. While the extrausers case is not as
correct as it would have been with a full fix, it's consistent with the
behaviour in 22.04 and thus should remain compatible with all existing
code.

I also apparently fumbled my LP: #XXXXXXX stanza in the oracular
changelog so I'll have to update the bug state manually.

-- 
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/2063200

Title:
  useradd --extrausers --groups tries to lock /etc/group

Status in shadow package in Ubuntu:
  Fix Committed
Status in shadow source package in Jammy:
  Invalid
Status in shadow source package in Mantic:
  Won't Fix
Status in shadow source package in Noble:
  New
Status in shadow source package in Oracular:
  Fix Committed

Bug description:
  On Ubuntu Core 24 calling the command line

  useradd --extrausers --groups somegroup somenewuser

  ... fails with:

  useradd: cannot lock /etc/group; try again later.

  It worked on 22.04. /etc is not writable. It also fails if somegroup
  is a group in extrausers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/2063200/+subscriptions




More information about the foundations-bugs mailing list