RE: [ADMIN] FATAL 1: SetUserId:

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: Bernd Johannes Wuebben <wuebben(at)math(dot)cornell(dot)edu>, M(dot)Boekhold(at)et(dot)tudelft(dot)nl
Cc: pgsql-admin(at)postgreSQL(dot)org
Subject: RE: [ADMIN] FATAL 1: SetUserId:
Date: 1998-08-13 21:37:45
Message-ID: F10BB1FAF801D111829B0060971D839F396651@cpsmail
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On 13-Aug-98 Maarten Boekhold wrote:
> >> wuebben: psql template1
> >> Connection to database 'template1' failed.
> >> FATAL 1: SetUserId: user "wuebben" is not in "pg_shadow"
> >
> > Your $PGDATA/pg_hba.conf is probably telling pgsql to require a
> > username/password for all databases. Go to the end of this file and
> > change 'password' to 'trust', and then restart the postmaster. I
> guess
> > this is an error in the rpm.
>
> No, this is not the case, here are the last line of my
> var/lib/pgsql/pg_hba.conf :
>
> # By default, allow anything over UNIX domain sockets and localhost.
>
> local all trust
> host all 127.0.0.1 255.255.255.255 trust
>
> As you can see 'trust' is set.
> Bernd
Following your situation what it seems you need to do is:
1) log into your server
2) log in as root (su -)
3) log in as postgres (su - postgres), which will work now even if
postgres doesn't have a password.
4) if your postmaster is running, create yourself as a user who can
create db's and users.
I think that will solve most of you problems.
-DEJ

Browse pgsql-admin by date

  From Date Subject
Next Message Bernd Johannes Wuebben 1998-08-13 22:16:17 Re: [ADMIN] FATAL 1: SetUserId:
Previous Message JOHN COOK 1998-08-13 21:06:44 Re: [ADMIN] FATAL 1: SetUserId: