Skip to content

Instantly share code, notes, and snippets.

@byk0t
Created June 1, 2020 10:09
Show Gist options
  • Save byk0t/1ea9737b4b2eb4ae06101e6bb9be5428 to your computer and use it in GitHub Desktop.
Save byk0t/1ea9737b4b2eb4ae06101e6bb9be5428 to your computer and use it in GitHub Desktop.
Postgres: allow connections for not OS users
sudo nano /etc/postgresql/12/main/pg_hba.conf
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment