please try su postgres -c 'createuser -U postgres me' or change auth method in your pg_hba.conf
2018-01-09 10:48 GMT+01:00 Agnar Renolen <agnar.renolen@xxxxxxxxx>:
How do I get started?Then trying with the -U postgres option.Then, trying the same as root, but gettinge the same result.createuser: could not connect to database postgres: FATAL: role "me" does not existme> createuser meI installed as root, but trying doing things as my local user "me"I have just installed PostGIS (Postgres9.6) on a Debian server using apt-get.But I have problems doing anything:
root> createuser me
createuser: could not connect to database postgres: FATAL: role "root" does not exist
root> createuser -U postgres me
createuser: could not connect to database postgres: FATAL: Peer authentication failed for user "postgres"