sajad torkamani

Switch to the UNIX user who is a Postgres superuser (on standard installations, postgres will be a superuser):

sudo su - postgres

Run:

createuser --pwprompt 

The --pwprompt flag will prompt you to enter password for the new user.

Sources

Tagged: Postgres