Snippet Path

Reset bitnami postgres password on a container shell

Authors
  1. Change directory to configuration folder
  2. Trust local connection in pg_hba
  3. Reload configuration using pg_ctl
shell
# pg reset pass local for bitnami:

cd /opt/bitnami/postgresql/conf
sed -i '/^local/s/.*/local all all trust/' pg_hba.conf
pg_ctl reload -D /bitnami/postgresal/data 

psql -U postgres # doesn't require password