I\'m trying to set up Postgres for the first time, and I need to create a user with permissions to read and create databases. However, when I use:
createuser
I had the same issue, i just do this
sudo su - postgres
createuser odoo -U postgres -dRSP #P for password (odoo or user name that you want o give the postgres access)