I ran:
$ createuser --pwprompt
and saw:
Enter password for new role:
I expected to be prompted for a username, so at this point I hit CTRL+C.
The man
page synopsis says that the username is optional:
createuser [connection-option...] [option...] [username]
The only other info given is:
username
Specifies the name of the PostgreSQL user to be created. This name must be different from all existing roles in this PostgreSQL installation.
What user is createuser
operating on when none is given?