Hello everyone,
Based on some of the other posts I came across, it seems like PostgreSQL uses socket authentication but I’m having trouble getting the console started on the command line.
I’ve tried the two commands below, but they ask for a password and don’t connect after the system replies “no password supplied”:
psql -h localhost -U zammad
psql -h localhost -U postgres
I have a feeling I’m missing a flag that signifies to connect with socket authentication, but I am not too familiar with PostgreSQL and the documentation didn’t really help me solve this. Any help is greatly appreciated.
When I run:
sudo psql zammad zammad
I get an error stating psql: FATAL: Peer authentication failed for user "zammad"
I looked in the pg_hba.conf
and see where it applies peer authentication to certain users and databases, just afraid of adverse effects on the production Zammad system.
Thanks so much,
Andrew
Edit: My hunch is the flag I want is unix_socket_directories (string)
but I’m not sure where the socket directories are located in the system.