0 {{postValue.vote_count}}

Postgres password authentication fails

I've installed PostgreSQL 9.1
after that I tried to connect to the default PostgreSQL template database:
sudo -u postgres psql template1
but login failed with this error message:
psql: FATAL: password authentication failed for user "postgres"

{{forumCtrl.question_commentErr}}

Your Answer
{{forumCtrl.responseErr}}