I have set all methods in pg_hba.conf to trust.
After restarting the postgresql, service I try to connect to psql in the terminal but it still asks for a password. A