not necessarily a bug...

Started by Theodore Petroskyabout 22 years ago5 messagesbugs
Jump to latest
#1Theodore Petrosky
tedpet5@yahoo.com

recently I was playing around with psql and tried to
log onto a postgresql server so I tried...

psql -h 10.0.1.233 dbname

and to my suprise, i was in and able to issue
commands. what is 'bothering' me is that I was not
asked for a password. in defence of the system, I was
on a mac os x box logged in as 'postgres' so my
current name was postgres.

is this correct behaviour? I was expecting to be
challenged.

Ted

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you���re looking for faster
http://search.yahoo.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Theodore Petrosky (#1)
Re: not necessarily a bug...

Theodore Petrosky <tedpet5@yahoo.com> writes:

recently I was playing around with psql and tried to
log onto a postgresql server so I tried...

psql -h 10.0.1.233 dbname

and to my suprise, i was in and able to issue
commands. what is 'bothering' me is that I was not
asked for a password.

So what have you got in pg_hba.conf? Evidently you've selected an
authentication method that's not password-based.

regards, tom lane

#3Alex J. Avriette
alex@posixnap.net
In reply to: Theodore Petrosky (#1)
Re: not necessarily a bug...

On Tue, Mar 09, 2004 at 02:17:23PM -0800, Theodore Petrosky wrote:

and to my suprise, i was in and able to issue
commands. what is 'bothering' me is that I was not
asked for a password. in defence of the system, I was
on a mac os x box logged in as 'postgres' so my
current name was postgres.

is this correct behaviour? I was expecting to be
challenged.

Documentation is your friend, Ted. You need to read the pg_hba.conf
file in your PG_DATA directory, and the documentation which came with
the postgres distribution. Additionally, this really isn't a question
for hackers@.

Alex

--
alex@posixnap.net
Alex J. Avriette, Unix Systems Gladiator
The Emperor Wears No Clothes.
http://www.drugsense.org/wodclock.htm

#4Alex J. Avriette
alex@posixnap.net
In reply to: Alex J. Avriette (#3)
Re: not necessarily a bug...

On Tue, Mar 09, 2004 at 07:33:31PM -0500, Alex J. Avriette wrote:

the postgres distribution. Additionally, this really isn't a question
for hackers@.

Meep, my apologies, this wasn't sent to hackers@.

--
alex@posixnap.net
Alex J. Avriette, Solaris Systems Masseur
"I ... remain against the death penalty because I feel that eternal boredom with no hope of parole is a much worse punishment than just ending it all mercifully with that quiet needle." - Rachel Mills, NC Libertarian Gubernatorial Candidate

#5Richard Huxton
dev@archonet.com
In reply to: Theodore Petrosky (#1)
Re: not necessarily a bug...

On Tuesday 09 March 2004 22:17, Theodore Petrosky wrote:

recently I was playing around with psql and tried to
log onto a postgresql server so I tried...

psql -h 10.0.1.233 dbname

is this correct behaviour? I was expecting to be
challenged.

Host-based access is controlled via the pg_hba.conf file. Check the settings
there, and let us know if you still think there is a problem.

--
Richard Huxton
Archonet Ltd