Create DB ends with error "FATAL: Ident authentication failed for user "postgres"" - Mailing list pgsql-general

From Fabricio Pedroso Jorge
Subject Create DB ends with error "FATAL: Ident authentication failed for user "postgres""
Date
Msg-id CAJDTwK1w0S6nhiv6vbLhQ+k_ycCoYHj=EUP5jwtD6=ZVX1vbYw@mail.gmail.com
Whole thread Raw
Responses Re: Create DB ends with error "FATAL: Ident authentication failed for user "postgres""
List pgsql-general
Hi all,

   PostgreSQL version...: 9.5.5
   OS...........................: Oracle Linux 6.5 64 bits

   I am quite new in the PostgreSQL world and i'm trying to create a new db with the following sintax, using the "postgres" OS user:

 [postgres@vm-ora12 ~]$ createdb -h localhost -p 5432 -U postgres dbdev

createdb: could not connect to database template1: FATAL:  Ident authentication failed for user "postgres"

I did the install via YUM, as "root" user using the PostgreSQL repository. the service is ip and running:

[root@vm-ora12 ~]# service postgresql-9.5 status
postgresql-9.5 (pid  18507) is running...


Why am i getting the above error while trying to create a new database?

Thanks for the attention and help.

--
Fabrício Pedroso Jorge.

Administrador de Banco de Dados


Resumo Profissional:
http://br.linkedin.com/in/fabriciojorge

Contatos:
+ 55 91 988991116
skype: fabricio.pedroso.jorge
fpjbito@gmail.com

pgsql-general by date:

Previous
From: Tom DalPozzo
Date:
Subject: INSERT - UPDATE throughput oscillating and SSD activity after stopping the client
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Create DB ends with error "FATAL: Ident authentication failed for user "postgres""