Home > Archive > Pgadmin > May 2005 > cannot access postgresql 7.3 via pgadmin III









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cannot access postgresql 7.3 via pgadmin III
Amit Sharma

2005-05-24, 7:24 am



Hi,

I am trying to access postgresql version 7.3 using pgadmin III from windows
2000 OS but i always keep getting the error Fatal - password authentication
failed for user root. i have allowed access in the pg_hba.conf file for all
users to access all databases by the defined ip's but still whenever i try
to access the database from pgadmin remotely i get the error Fatal -
password authentication failed for user root. I have also a set tcp ip =
true in postgresql.conf. Can you please give me some hints as to what could
be the problem.

Thanks
regards,
Amit


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Dave Page

2005-05-24, 7:24 am



> -----Original Message-----
> From: pgadmin-support-owner@postgresql.org
> [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Amit Sharma
> Sent: 24 May 2005 12:02
> To: pgadmin-support@postgresql.org
> Subject: [pgadmin-support] cannot access postgresql 7.3 via
> pgadmin III
>
>
>
> Hi,
>
> I am trying to access postgresql version 7.3 using pgadmin
> III from windows
> 2000 OS but i always keep getting the error Fatal - password
> authentication
> failed for user root. i have allowed access in the
> pg_hba.conf file for all
> users to access all databases by the defined ip's but still
> whenever i try
> to access the database from pgadmin remotely i get the error Fatal -
> password authentication failed for user root. I have also a
> set tcp ip =
> true in postgresql.conf. Can you please give me some hints as
> to what could
> be the problem.


Do you have a PostgreSQL user called root? The PostgreSQL superuser
account is normally 'postgres'.

Regards. Dave.

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Dave Page

2005-05-24, 7:24 am



> -----Original Message-----
> From: Amit Sharma [mailto:amit.sharma@wificom.com]
> Sent: 24 May 2005 12:59
> To: Dave Page; pgadmin-support@postgresql.org
> Subject: RE: [pgadmin-support] cannot access postgresql 7.3
> via pgadmin III
>
> Hi ,
>
> I have a database called sabdb. I can use the pasql client
> from linux and
> connect to it via root, so i guess root access to the db is
> allowed. The
> only problem is to connect to it via pgadmin III on win 2k OS
> via external
> hosts whose IP's are already entered into the pg_hba.conf .
> Please view the
> attached files for your reference. I am a novice in
> postgresql and so i want
> to connect to the database via a windows tool and check the database.


What does "select * from pg_user" return? Is there a user called root in
the result set?

Regards, Dave

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Amit Sharma

2005-05-24, 7:24 am

Hi ,

I have a database called sabdb. I can use the pasql client from linux and
connect to it via root, so i guess root access to the db is allowed. The
only problem is to connect to it via pgadmin III on win 2k OS via external
hosts whose IP's are already entered into the pg_hba.conf . Please view the
attached files for your reference. I am a novice in postgresql and so i want
to connect to the database via a windows tool and check the database.

Thanks in advance for all the help

Regards,
Amit

-----Original Message-----
From: Dave Page & #91;mailto:dpage@val
e-housing.co.uk]
Sent: Tuesday, May 24, 2005 3:36 PM
To: amit.sharma@wificom.com; pgadmin-support@postgresql.org
Subject: RE: [pgadmin-support] cannot access postgresql 7.3 via pgadmin
III




> -----Original Message-----
> From: pgadmin-support-owner@postgresql.org
> [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Amit Sharma
> Sent: 24 May 2005 12:02
> To: pgadmin-support@postgresql.org
> Subject: [pgadmin-support] cannot access postgresql 7.3 via
> pgadmin III
>
>
>
> Hi,
>
> I am trying to access postgresql version 7.3 using pgadmin
> III from windows
> 2000 OS but i always keep getting the error Fatal - password
> authentication
> failed for user root. i have allowed access in the
> pg_hba.conf file for all
> users to access all databases by the defined ip's but still
> whenever i try
> to access the database from pgadmin remotely i get the error Fatal -
> password authentication failed for user root. I have also a
> set tcp ip =
> true in postgresql.conf. Can you please give me some hints as
> to what could
> be the problem.


Do you have a PostgreSQL user called root? The PostgreSQL superuser
account is normally 'postgres'.

Regards. Dave.

Amit Sharma

2005-05-24, 7:24 am

Hi Dave,

Yeah the output of select * from pg_user; returns two values.

1. root (usesysid - 100)with some password in encrypted form
2. postgres (usesysid - 1) with password in encrypted form

What is the password of the user postgres???, so i can try to connect via
this one and check.

Thanks
Regards
Amit

-----Original Message-----
From: Dave Page & #91;mailto:dpage@val
e-housing.co.uk]
Sent: Tuesday, May 24, 2005 4:24 PM
To: amit.sharma@wificom.com; pgadmin-support@postgresql.org
Subject: RE: [pgadmin-support] cannot access postgresql 7.3 via pgadmin
III




> -----Original Message-----
> From: Amit Sharma [mailto:amit.sharma@wificom.com]
> Sent: 24 May 2005 12:59
> To: Dave Page; pgadmin-support@postgresql.org
> Subject: RE: [pgadmin-support] cannot access postgresql 7.3
> via pgadmin III
>
> Hi ,
>
> I have a database called sabdb. I can use the pasql client
> from linux and
> connect to it via root, so i guess root access to the db is
> allowed. The
> only problem is to connect to it via pgadmin III on win 2k OS
> via external
> hosts whose IP's are already entered into the pg_hba.conf .
> Please view the
> attached files for your reference. I am a novice in
> postgresql and so i want
> to connect to the database via a windows tool and check the database.


What does "select * from pg_user" return? Is there a user called root in
the result set?

Regards, Dave


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Dave Page

2005-05-24, 7:24 am



> -----Original Message-----
> From: Amit Sharma [mailto:amit.sharma@wificom.com]
> Sent: 24 May 2005 13:38
> To: Dave Page; pgadmin-support@postgresql.org
> Subject: RE: [pgadmin-support] cannot access postgresql 7.3
> via pgadmin III
>
> Hi Dave,
>
> Yeah the output of select * from pg_user; returns two values.
>
> 1. root (usesysid - 100)with some password in encrypted form
> 2. postgres (usesysid - 1) with password in encrypted form
>
> What is the password of the user postgres???, so i can try to
> connect via
> this one and check.


I have no idea - it's your system :-)

Try setting the password using ALTER USER root WITH PASSWORD 'password';
(http://www.postgresql.org/docs/8.0/...-alteruser.html). My
guess is that no password is currently set, so you cannot login remotely
because one is required.

BTW, you might want to change the password entries in pg_hba.conf to md5
as well - this will prevent plain text passwords being sent over the
wire.

Regards, Dave

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com