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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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?