I have just installed postgresql and I specified password x during installation. When I try to do createdb and specify any password I get the message:
createdb
You probably need to update your pg_hba.conf file. This file controls what users can log in from what IP addresses. I think that the postgres user is pretty locked-down by default.