You will not be able to find out the password that he chose. However, you can create a new user or set a new password for an existing user.
You can usually log in as a postgres user:
Open a terminal and do sudo su postgres . Now, after entering the administrator password, you can start psql and do
CREATE USER yourname WITH SUPERUSER PASSWORD 'yourpassword';
This creates a new admin user. If you want to list existing users, you can also do
\du
to view all users and then
ALTER USER yourusername WITH PASSWORD 'yournewpass';
Thilo Feb 21 '13 at 17:14 2013-02-21 17:14
source share