Unix Technical Forum

Postgresql Login problem

This is a discussion on Postgresql Login problem within the pgsql Admins forums, part of the PostgreSQL category; --> I am trying to use PostgreSQL ver. 8.1.4 that comes with Red Hat Enterprise Linux 5. I cannot log ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:04 AM
Dr. Lal Bopearachchi
 
Posts: n/a
Default Postgresql Login problem

I am trying to use PostgreSQL ver. 8.1.4 that comes with Red Hat
Enterprise Linux 5.

I cannot log into the postgres server as postgres, it gives the error
message "password authentication failed for user "postgres".



Is there a default password?



How can I start working with postgres?



Regards.



Lal Bopearatchy


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:04 AM
Ashish Karalkar
 
Posts: n/a
Default Re: Postgresql Login problem

Have you supplied password to initdb command?
if not there are two ways

1) In pg_hba.conf file set athuntication method =trust instead of password. (if you want to keep trust method for all time)

2) Do the above step then login into postgres database and the issue command

alter role postgres password 'your password goes here'

then again open pg_hba.con and set authuntication method to password.


rember these changes requires server restart or relaod.
with regards
ashish...



----- Original Message -----
From: Dr. Lal Bopearachchi
To: pgsql-admin@postgresql.org
Sent: Friday, August 03, 2007 12:24 PM
Subject: [ADMIN] Postgresql Login problem


I am trying to use PostgreSQL ver. 8.1.4 that comes with Red Hat Enterprise Linux 5.

I cannot log into the postgres server as postgres, it gives the error message "password authentication failed for user "postgres".



Is there a default password?



How can I start working with postgres?



Regards.



Lal Bopearatchy

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 09:04 AM
Tom Lane
 
Posts: n/a
Default Re: Postgresql Login problem

"Dr. Lal Bopearachchi" <lal@apiit.lk> writes:
> I am trying to use PostgreSQL ver. 8.1.4 that comes with Red Hat
> Enterprise Linux 5.
> I cannot log into the postgres server as postgres, it gives the error
> message "password authentication failed for user "postgres".
> Is there a default password?


No. The default Red Hat configuration doesn't use passwords --- it is
set up for "ident" authorization, instead. Have you changed any
configuration files? What are the exact commands you are trying?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com