Re: PG 7.4.3 sur Debian

Lists: Postg와이즈 토토SQL : Postg와이즈
From: "Dr(dot) Stéphane Schildknecht" <sschildknecht(at)linagora(dot)com>
To: "'pgsql-fr-generale(at)postgresql(dot)org'" <pgsql-fr-generale(at)postgresql(dot)org>
Subject: PG 7.4.3 sur Debian
Date: 2004-08-11 09:15:20
Message-ID: 4119E3A8.30809@linagora.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-fr-generale

Bonjour,

J'ai effectué une mise à jour d'une debian sarge. La version de
PostgreSQL est la 7.4.3.
Malheureusement, seul l'utilisateur postgres peut se connecter en local.
Le fichier pg_hba.conf contient les lignes suivantes :
local all all trust
local all scarab trust
host all all 127.0.0.1 255.255.255.255 trust
host all all 192.168.0.0 255.255.0.0 trust

L'utilisateur scarab ne peut se connecter à aucune base en local.
si je rajoute -h localhost à ma ligne, scarab peut se connecter.

postgres(at)upmc1:~/dumpall$ psql template1 -U scarab
psql: FATAL: IDENT authentication failed for user "scarab"
postgres(at)upmc1:~/dumpall$ psql scarab -U scarab
psql: FATAL: IDENT authentication failed for user "scarab"
postgres(at)upmc1:~/dumpall$ psql scarab -U scarab -h localhost
Welcome to psql 7.4.3, the PostgreSQL interactive terminal.

Quelqu'un aurait-il une idée ?

Je commence en fait à douter que le fichier pg_hba.conf soit bien relu...
Comment être sûr ?

S(at)S

--
Stéphane SCHILDKNECHT

LINAGORA
30 rue Saint Augustin 75002 PARIS
Tel : +33(0)1 58 18 68 28
fax : +33(0)1 58 18 68 29
http://www.linagora.com


From: "Dr(dot) Stéphane Schildknecht" <sschildknecht(at)linagora(dot)com>
To: "'pgsql-fr-generale(at)postgresql(dot)org'" <pgsql-fr-generale(at)postgresql(dot)org>
Subject: Re: PG 7.4.3 sur Debian
Date: 2004-08-11 10:00:48
Message-ID: 4119EE50.30405@linagora.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg와이즈 토토SQL : Postg와이즈

Je viens de trouver la réponse à ma question. Le fichier pg_hba.conf
n'était effectivement pas relu par pg_ctl pour la stupide raison que le
fichier appartenait à root !!!

Ayant rendu à César ce qui lui appartenanit, je retrouve le comportement
habituel (et logique) de mon serveur de bases de données préféré ;-)

Merci

S(at)S

--
Stéphane SCHILDKNECHT

LINAGORA
30 rue Saint Augustin 75002 PARIS
Tel : +33(0)1 58 18 68 28
fax : +33(0)1 58 18 68 29
http://www.linagora.com