[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

avvio postgresql



Salve lista,
stavo facendo delle prove con postgresql e volevo provare a configurare l'accesso su postgres con l'inserimento di password, che sia in localhost oppure con Unix-domain socket (da utente postgres). Ho modificato nel file pg_hba.conf, il metodo della riga relativa all'utente postgres da:

local   all             postgres                                peer

a

local   all             postgres                                md5

Il risultato dovrebbe essere che tutti gli accessi su db, che siano su localhost oppure tramite Unix-domain socket richiedano una password.

Al successivo riavvio di postgresql, ottengo un sfilza di:

root@hostname:/etc/postgresql/9.1/main# /etc/init.d/postgresql start
[....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2014-02-08 19:25:25 CET LOG: il database ? stato arrestato alle 2014-02-08 19:24:59 CET 2014-02-08 19:25:25 CET LOG: il database ? pronto ad accettare connessioni 2014-02-08 19:25:25 CET LOG: esecutore di autovacuum avviato 2014-02-08 19:25:25 CET LOG: pacchetto di avvio incompleto 2014-02-08 19:25:26 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:26 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:27 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:27 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:28 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:28 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:29 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:29 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:30 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:25:30 CET FATALE: autent[FAILone con password fallita per l'utente "postgres" 2014-02-08 19:25:31 CET FATALE: autenticazione con password fallita per l'utente "postgres" ... failed!
 failed!

e dal log:

2014-02-08 19:30:18 CET LOG: il database ? stato arrestato alle 2014-02-08 19:30:11 CET
2014-02-08 19:30:18 CET LOG:  il database ? pronto ad accettare connessioni
2014-02-08 19:30:18 CET LOG:  esecutore di autovacuum avviato
2014-02-08 19:30:18 CET LOG:  pacchetto di avvio incompleto
2014-02-08 19:30:18 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:19 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:19 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:20 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:20 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:21 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:21 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:22 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:22 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:23 CET FATALE: autenticazione con password fallita per l'utente "postgres" 2014-02-08 19:30:24 CET FATALE: autenticazione con password fallita per l'utente "postgres"


ottenendo pero il risultato desiderato. Quindi, postgresql viene avviato e per qualsiasi login viene richiesta la password.

Ora ho diversi dubbi al riguardo:

1) Quale è l'operazione che viene eseguita e che riporta errore durante l'avvio? Ho provato a vedere in /usr/share/postgresql-common/init.d-functions ma non ne vengo a capo (sempre se è il punto giusto da cui iniziare)

2) La richiesta della password in fase di autenticazione per l'utente postgres tramite unix socket domain, aumenta la sicurezza, oppure non serve assolutamente a niente, o magari peggiora le cose?

Vi ringrazio in anticipo.

Un saluto.


Reply to: