[Bug 1889092] Re: getent does not support extrausers on uc18

James Henstridge 1889092 at bugs.launchpad.net
Mon Sep 14 07:09:09 UTC 2020


getent isn't the problem here: it is just returning whatever data the
nameservice switch provides.

The underlying cause is that libnss-extrausers ignores entries in the
extrausers database that have a uid or gid less than 500:

https://git.launchpad.net/ubuntu/+source/libnss-
extrausers/tree/s_config.h

The docker user and group as defined fall into that category.

It's not at all clear that it's a good idea to have low ID users and
groups in extrausers anyway: it seems like it's just asking for
conflicts with future updates of the base snap.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1889092

Title:
  getent does not support extrausers on uc18

Status in snapd:
  Confirmed
Status in glibc package in Ubuntu:
  New

Bug description:
  for example, see this test:

  ```
  user at coreimg:~$ snap run --shell docker
  user at coreimg:/home/user$ grep docker /var/lib/extrausers/group
  docker:x:113:
  user at coreimg:/home/user$ grep docker /etc/group
  user at coreimg:/home/user$ getent group docker
  user at coreimg:/home/user$ 
  ```

  with a modified version of the core18 snap to move the docker gid
  definition from /etc/group to /var/lib/extrausers/group, this was
  based on the edge channel revision 1888 on arm64.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1889092/+subscriptions



More information about the foundations-bugs mailing list