After installing rails and trying to install PostgreSQL in the terminal (following these instructions https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-ruby-on-rails-application-on-ubuntu-14-04),
I run into this when I try to set up a username using "sudo -u postgres createuser -s username":
'could not change directory to "/home/UbuntuUsername": Permission denied createuser: creation of new role failed: ERROR: role "UbuntuUsername" already exists'
How do I get around this? Any help would be greatly appreciated.
I'm completely new to Ubuntu (im running 14.04), so forgive me if this is simple to solve.