To change the the postgres user’s password follow this steps
- Login into the psql:
$ sudo -u postgres psql
- Then in the psql console change the password and quit:
postgres=# password postgres
Enter new password: <new-password>
postgres=# q
To change the the postgres user’s password follow this steps
$ sudo -u postgres psql
postgres=# password postgres
Enter new password: <new-password>
postgres=# q