Unlike MySQL there is no default user name and password. To connect to a freshly installed PostgreSQL server on Linux you will need to change to the postgres user:

sudo su – postgres

After that you can connect to the server  by simply typing

psql

A more detailed explanation can be found at www.liquidweb.com/kb/what-is-the-default-password-for-postgresql/