I have create a new user in pgsql with no password. But when i try to create a database for this user it prompts for a password
>createuser -d -S -R -U postgres test1
Password:
>createdb -U test1 db1
Password:
i have tried the superuser password but it gives me the error :
createdb: could not connect to database template1: FATAL: password authentication failed for user "test1"
Please help, Thank you