Skip site navigation (1) Skip section navigation (2)

Bogus error message about private key (not a bug).

From: Stefanos Harhalakis <v13(at)priest(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bogus error message about private key (not a bug).
Date: 2004-11-13 11:47:26
Message-ID: 200411131347.32374.v13@priest.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Hi there,

PostgreSQL 7.4.6 gives the following error message when trying to read the 
private key in the case of:

-rw-------  1 root root 887 Aug 19 15:01 /var/lib/postgres/data/server.key

2004-11-13 13:04:42 [4095] FATAL:  unsafe permissions on private key file 
"/var/lib/postgres/data/server.key"
DETAIL:  File must be owned by the database user and must have no permissions 
for "group" or "other".

I believe that the checks in src/backend/libpq/be-secure.c:653 should be 
performed in a different order (first the access permissions and then the 
owner of the key) just to give a more appropriate message.

Thanks in advance,

<<V13>>

Responses

pgsql-bugs by date

Next:From: David WalkerDate: 2004-11-13 20:15:38
Subject: libplperl.so and libperl.so
Previous:From: Russell SmithDate: 2004-11-13 10:47:50
Subject: Re: pg_dump case folding bug

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group