Desde una shell
Â
# su postgres # psql -d template1 template1=# ALTER USER postgres WITH PASSWORD 'mipwdnueva';