Thread: cannot access postgresql 7.3 via pgadmin III

cannot access postgresql 7.3 via pgadmin III

From
"Amit Sharma"
Date:

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



Re: cannot access postgresql 7.3 via pgadmin III

From
"Dave Page"
Date:

> -----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.


Re: cannot access postgresql 7.3 via pgadmin III

From
"Dave Page"
Date:

> -----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


Re: cannot access postgresql 7.3 via pgadmin III

From
"Amit Sharma"
Date:
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 [mailto:dpage@vale-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.

Attachment

Re: cannot access postgresql 7.3 via pgadmin III

From
"Dave Page"
Date:

> -----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/interactive/sql-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


Re: cannot access postgresql 7.3 via pgadmin III

From
"Amit Sharma"
Date:
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 [mailto:dpage@vale-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