Create a user who can, in turn, create databases and other users

Instead of using the postgres user to create and destroy databases and users, you can create a user for that task instead:

$ sudo su - postgres
$ psql template1
template1=# create user myuser superuser createdb createrole password 'mypassword';
template1=# \q