"A B" <gentosaker(at)gmail(dot)com> writes:
> psql: could not connect to server: Permission denied
> Is the server running locally and accepting
> connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"
Did you actually put the socket file there? If so, the problem is
probably lack of world read permission for /var/run/postgresql/.
regards, tom lane