Just after installation, you can access the database "postgres" without authentication as the user postgres by running the PostgreSQL interactive terminal program, called psql.
$ /usr/local/pgsql/bin/psql
When you are prompted, type as follows.
postgres=# alter role postgres with password 'your_password';(your_password should be read as a new password you want to set.)