Hi,

(This is more a mental note/TODO for some the future, not a critical
problem right now).

It seems that there is some configuration issue on vcs0 regarding
libnss+mysql, where non-root users can't use libnss's getgrname.

As root@vcs0, these work:

   getent group coreutils
   getent group foobar

As agnlocal@vcs0, then hang at getgrnam():

  $ ltrace getent group coreutils
  __libc_start_main(0x4022b0, 3, 0x7fff8e628868, 0x4044e0
  mtrace()                   = <void>
  setlocale(LC_ALL, "")      = "C"
  textdomain("libc")         = "libc"
  argp_parse(0x606440, 3, 0x7fff8e628868, 0) = 0
  strcmp("group", "group")   = 0
  __errno_location()         = 0x7fc1ffe9e6a0
  strtoul(0x7fff8e62a910, 0x7fff8e6286f0, 10, 0) = 0
  getgrnam("coreutils"

Querying all groups work (getgrent)

  $ getent group | grep coreutils
  coreutils:x:2992:agn,berny,eggert,ericb,meyering,pixelbeat,rwp

As well as querying by gid (getgrgid)

  $ getent group 2992
  coreutils:x:2992:agn,berny,eggert,ericb,meyering,pixelbeat,rwp


This isn't critical, I just encountered it when trying to extract a tar
that queried group names.


-assaf


Reply via email to