Salut,
je prends la main sur un serveur que je n'ai pas installé. Et bien entendu, je n'ai pas tous les mots de passe. J'essaie en vain de reinitialiser le mot de passe root pour accèder à pgsql.
J'ai essayé différente combinaison dans le pg_hba.conf mais sans succès.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
# Database administrative login by UNIX sockets
#local   all         postgres                                        ident sameuser
local   all         all                                             trust
#
# All other connections by UNIX sockets
#local   all         trust                                             ident sameuser
# gacp - this on is CRAZY - remove!!!
#local   all         all                                             ident
local   all          all                                             md5
#
# All IPv4 connections from localhost
host    all         all         127.0.0.1         255.255.255.255   ident sameuser
#
# gacp added next line - allows access from SI network
#host    all         all         160.111.0.0         255.255.0.0   ident sameuser
host    all          all        160.111.0.0         255.255.0.0    md5
#
# All IPv6 localhost connections
host    all         all         ::1               ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff        ident sameuser
host    all         all         ::ffff:127.0.0.1/128                ident sameuser
#
# reject all other connection attempts
host    all         all         0.0.0.0           0.0.0.0           reject
en rouge la dernière en date.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
root@STRI-DB01:/etc/postgresql# psql -U postgre -d template1
Password:
psql: FATAL:  Password authentication failed for user "postgre"
root@STRI-DB01:/etc/postgresql# psql -U biogeo -d template1
Password:
psql: FATAL:  Password authentication failed for user "biogeo"
root@STRI-DB01:/etc/postgresql# psql -U root -d template1
Password:
psql: FATAL:  Password authentication failed for user "root"
Qu'est ce qui cloche ?

merci