Could you try with PGUSER and PGPASSWORD environment variables?
[PG docs](http://www.postgresql.org/docs/current/static/libpq-envars.html)