|
novamente dando relatório das mudanças. Caí
na asneira de verificar as permissões e proprietários do novo
diretório de dados, e percebi que tudo pertencia ao usuário root.
Comparando com o velho diretório de dados, conforme abaixo... root@e3corr04:/var/lib/postgresql/9.1# ls -lh main/ total 52K drwx------ 9 root root 4,0K Ago 13 22:22 base drwx------ 2 root root 4,0K Ago 13 22:22 global drwx------ 2 root root 4,0K Ago 13 22:22 pg_clog drwx------ 4 root root 4,0K Ago 13 22:22 pg_multixact drwx------ 2 root root 4,0K Ago 13 22:22 pg_notify drwx------ 2 root root 4,0K Ago 13 22:22 pg_serial drwx------ 2 root root 4,0K Ago 13 22:22 pg_stat_tmp drwx------ 2 root root 4,0K Ago 13 22:22 pg_subtrans drwx------ 2 root root 4,0K Ago 13 22:22 pg_tblspc drwx------ 2 root root 4,0K Ago 13 22:22 pg_twophase -rw------- 1 root root 4 Ago 13 22:22 PG_VERSION drwx------ 3 root root 4,0K Ago 13 22:22 pg_xlog -rw------- 1 root root 133 Ago 13 22:22 postmaster.opts lrwxrwxrwx 1 root root 36 Ago 13 22:22 server.crt -> /etc/ssl/certs/ssl-cert-snakeoil.pem lrwxrwxrwx 1 root root 38 Ago 13 22:22 server.key -> /etc/ssl/private/ssl-cert-snakeoil.key Comparando com o velho diretório de dados, mudei quase todos os proprietários conforme abaixo root@e3corr04:/var/lib/postgresql/9.1/main# ls -lh total 52K drwx------ 9 postgres postgres 4,0K Ago 13 22:22 base drwx------ 2 postgres postgres 4,0K Ago 13 22:22 global drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_clog drwx------ 4 postgres postgres 4,0K Ago 13 22:22 pg_multixact drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_notify drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_serial drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_stat_tmp drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_subtrans drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_tblspc drwx------ 2 postgres postgres 4,0K Ago 13 22:22 pg_twophase -rw------- 1 postgres postgres 4 Ago 13 22:22 PG_VERSION drwx------ 3 postgres postgres 4,0K Ago 13 22:22 pg_xlog -rw------- 1 postgres postgres 133 Ago 13 22:22 postmaster.opts lrwxrwxrwx 1 postgres postgres 36 Ago 13 22:22 server.crt -> /etc/ssl/certs/ssl-cert-snakeoil.pem lrwxrwxrwx 1 postgres postgres 38 Ago 13 22:22 server.key -> /etc/ssl/private/ssl-cert-snakeoil.key root@e3corr04:/var/lib/postgresql/9.1/main# chown root:root server.crt root@e3corr04:/var/lib/postgresql/9.1/main# chown root:root server.key E a saída está abaixo... root@e3corr04:/var/lib/postgresql/9.1/main# pg_ctlcluster 9.1 main start The PostgreSQL server failed to start. Please check the log output: 2013-08-13 23:37:36 BRT FATAL: could not load private key file "server.key": Permiss?o negada root@e3corr04:/var/lib/postgresql/9.1/main# chown root:root server.key root@e3corr04:/var/lib/postgresql/9.1/main# pg_ctlcluster 9.1 main start The PostgreSQL server failed to start. Please check the log output: 2013-08-13 23:38:12 BRT FATAL: could not load private key file "server.key": Permiss?o negada Em 13-08-2013 12:35, Matheus de
Oliveira escreveu:
--
![]() |
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

