Re: what is the default username password for PostgreSQL, which was installed with FC5. - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: what is the default username password for PostgreSQL, which was installed with FC5.
Date
Msg-id 20061027094758.GE570@svana.org
Whole thread Raw
In response to Re: what is the default username password for PostgreSQL, which was installed with FC5.  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: what is the default username password for PostgreSQL, which was installed with FC5.  ("Purusothaman A" <purusothaman.a@gmail.com>)
List pgsql-general
On Fri, Oct 27, 2006 at 11:43:26AM +0200, A. Kretschmer wrote:
> am  Fri, dem 27.10.2006, um 15:01:09 +0530 mailte Purusothaman A folgendes:
> > Thanks for your immediate reply.
> >
> > I created new role "db1" and database "db1".
> >
> > but I cannot login using
> >          psql -Udb1 -ddb1 -hlocalhost
> > results
> > Fatal Error : Ident authentication failed for user "db1".
>
> You arn't the user called 'db1'?
>
> Either 'su - db1' and then psql, or change the settings in your
> pg_hba.conf for this database and localhost to 'trust'.

Right. As pointed out, the default authentication method "ident" means
that the database user and the system user are linked, so system user
"db1" can login as database user "db1" without a password.

"trust" means anyone can login an anyone, which may or may not be what
you want.

You can define ident maps, where you state that system user "x" can
login without password as database user "y". Check the documentation.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: what is the default username password for PostgreSQL, which was installed with FC5.
Next
From: Ron Johnson
Date:
Subject: Re: skip duplicate key error during inserts