Resettare la password dell'utente postgres in Debian
- Impostare la password dell'utente unix
sudo passwd postgres
- Loggarsi come postgres
sudo -u postgres -i
- Impostare la password dell'utente database:
psql -c "ALTER USER postgres WITH PASSWORD 'changeme'" -d template1