savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] vcs0: libnss/mysql "getent group X" stuck for


From: Assaf Gordon
Subject: [Savannah-hackers-public] vcs0: libnss/mysql "getent group X" stuck for non-root users
Date: Thu, 28 Sep 2017 22:53:07 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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 address@hidden, these work:

   getent group coreutils
   getent group foobar

As address@hidden, 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

[Prev in Thread] Current Thread [Next in Thread]