How to change the “postgres” user password

sudo -u postgres psql

 \password postgres

Then to quit:

\q

Advertisements