sudo -u postgres createuser -s $USER
# Create a new user
$ sudo -u postgres createuser -s $USER
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
This isn't what happened for me. On Ubuntu 14.04, it didn't ask any questions, just created a user. How do I set the password?