0

I'm working on many projects simultaneously, and some have some passwords defined as default, which can vary along projects. I've got postgresql installed on my (Ubuntu) laptop and of course I'm only using it locally for devving.

I know it's horribly insecure, but I don't expose postgres remotely. So to make things easier I would like the postgresql server to accept ANY password it is given for the postgres user. Is there any way that I could do this?

1 Answer 1

2

Set trust for all you local connections in pg_hba.conf like e.g

local   all             all                                     trust

After editing, restart the postgresql service.

Sign up to request clarification or add additional context in comments.

1 Comment

For people wondering where they can find their pg_hba.conf, run psql -U postgres -c 'SHOW config_file' to find it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.