Current behaviour: Using some command, e.g. screen, on a system using libnss-pgsql as normal user gives me "Could not connect to database". Tracking down this message I found it comes from trying to access the shadow database which is of course not possible as a normal user cannot read /etc/nss-pgsql-root.conf and thus cannot connect to the database. The error message is a bit annoying as it is actually not error at all. Expected behaviour: Do not print a warning if a normal user tries to access the shadow database Suggested patch: See attachment: just check if the reason why opening the config file failed is EACCES and immediately return. Reproducible: Always Steps to Reproduce: 1. make use of libnss-pgsql for both passwd and shadow 2. issue screen as normal user
Created attachment 136791 [details, diff] Patch to solve the describe issue
Can you please report this upstream, if it's still a problem with 1.5.0?
I haven't tried it out yet (production system) but judging from the CVS diff this problem was address in released 1.5.0 beta.