0

I followed the installation guide here to install Postgres on my Mac OS 10.10 using Homebrew.

When I run su - postgres, it prompts for a password. Entering my root password fails with the message su: Sorry.

I've checked other answers where sudo su - postgres worked for people, but it doesn't work for me. Entering my root password here returns su: unknown login: postgres.

What else could the password be if not my root password? This is a brand new installation and never asked me to set a password.

And yes, I've started Postgres as instructed in the above guide using lunchy start postgres.

Any recommendations?

1 Answers1

0

You're basically trying to login as postgres into the postgres engine. But if your Mac doesn't have a user postgres, then you won't be able to login no matter what password you use. Alternatively, use any super user to login.

With my current user as a super user, I simply logged into postgres by using pgsql

Ludwi
  • 437
  • 4
  • 8