Quote:
|
Originally Posted by FoxleighFlyer
I though not having access to this file might have been significant. The contents are:
|
Not really - that's just a default, and isn't necessary for a normal
user to be reabable, just like /etc/shadow (OK, not quite the same:
if the latter was world-readable that would be seriously harmful)
Quote:
|
Originally Posted by FoxleighFlyer
# Database administrative login by UNIX sockets
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all ident sameuser
|
So what that line says it that the postgres-user and the
OS user need to be the same. In other words: you'll
need to su - postgres, then fire up pgAdmin; and for
all other users that you'll want to access Postgres from
the local machine you'll have to create (again as OS user
postgres) a database user with the same name, e.g.
su - postgres
createuser foxleigh
If you're the only one with physical access to the box
and a local login you could comment the line with the
postgres user out, and alter the other localhost line
to say
local all all trust
or
local all all md5 (makes use of
postgres-passwords, of course you'd need to know how
the postgres-user was defined ;})
Cheers,
Tink