SCM

[#1010197] get rid of "Could not connect to database" as normal user

View Trackers | Bugs | Download .csv | Monitor

Date:
2007-11-23 19:20
Priority:
3
State:
Open
Submitted by:
Thorsten Meinl (sithmein)
Assigned to:
Nobody (None)
Category:
Group:
NSS
Resolution:
None
 
Summary:
get rid of "Could not connect to database" as normal user

Detailed description
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.

Followup

Message
Date: 2012-08-22 18:47
Sender: T D

I agree that this is a bug. I hope you will accept the suggested patch or fix it some other way as it is extremely annoying.

This bug was reported five years ago with a patch to fix the issue and it has not been fixed. Not even a reply. This makes me worried that the project is abandoned...

Attached Files:

Attachments:
libnss-pgsql-1.4.0-shadow-nonroot.patch

Changes:

Field Old Value Date By
File Added267: libnss-pgsql-1.4.0-shadow-nonroot.patch2007-11-23 19:20sithmein
Powered By FusionForge