Menu

libnss-mysql-root.cfg

Help
2006-02-27
2013-04-17
  • Stuart Brand

    Stuart Brand - 2006-02-27

    non-root users can not resolve names from uid with out libnss-mysql-root.cfg being world readable

    <from strace>
    munmap(0xb7c85000, 4096)                = 0
    open("/etc/libnss-mysql-root.cfg", O_RDONLY) = -1 EACCES (Permission denied)
    </>

    nss is calling for libnss-mysql-root.cfg, it shouldn't need this file as it only needs to access the auth table? is there a config file some where that says which files to open?

     
    • Ben Goodwin

      Ben Goodwin - 2006-03-02

      It always tried to read the root config since checking euid == 0 doesn't always accomplish the desired effect; so we rely on whether the current proc can read the file or not to determine what kind of access we get.

      If non-root users can't resolve names from UID, it sounds like there's a permissions problem for the non-root MySQL user.  Can you manually execute the getpwuid SQL query as the non-root mysql user configured in /etc/libnss-mysql.cfg?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.