Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Adventures in Linux Land
gaekwad wrote #339892:
How do I enable password auth for the
postgres
user when I dopsql -U postgres
? I suspect it’s something to do withpg_hba.conf
and likely answered here
Done (in much less than two hours, thankfully):
- Use
passwd
to set user account password for userpostgres
. - Use
sudo -u postgres psql
to open PostgreSQL console. - Use
\password postgres
to set thepostgres
user password for the console. - Tell
pg_bha.conf
to usescram-sha-256
for local user(s):
local all all scram-sha-256
- Bounce
postgresql
service. - Subsequent
psql
connections now need a password, even from a local connection.
Offline