postgresql - Accessing a Postgres Db - Ident authentication failed -


this question has answer here:

i setup posgresql on centos. i'm trying access receive error:

sudo -u postgres psql -c "alter user john password 'mypass';" [sudo] password john: not change directory "/home/john" alter role psql -h localhost -u john -d proddb -w password user john: psql: fatal:  ident authentication failed user "john" 

i've listed users 'du' , know john superuser. can tell me why happening , how fix it?

i replaced ident password in pg_hba.conf, restarted postgres service , works. ident option uses system credentials while 'password' option use un-encrypted password.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -