The Problem If you’re installing postgresql via homebrew on Lion you might be encountering errors like these: psql: could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? createuser: could not connect to database postgres: could not connect to server: Permission denied Is the server running loc