pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Client Authentication
5+ messages / 5 participants
[nested] [flat]

* Client Authentication
@ 2002-02-22 10:19 Gtrica <gtricarico@intin.it>
  2002-02-22 15:47 ` Re: Client Authentication Tom Lane <tgl@sss.pgh.pa.us>
  2002-02-22 16:17 ` Re: Client Authentication Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2002-02-22 18:54 ` Re: Client Authentication tuan <tuan.nguyen@freesbee.fr>
  2002-02-27 17:52 ` Re: Client Authentication Craig Moon <craig@usight.com>
  0 siblings, 4 replies; 5+ messages in thread

From: Gtrica @ 2002-02-22 10:19 UTC (permalink / raw)
  To: pgsql-admin

Hi all

I'm trying to configure Postgress to allow restricted access to database.
I inserted in the file pg_hba.conf the following line:
local   primo
password   ./pass

the file pass in directory  "data" contains the line "giuseppe:gitrica"
when I connect using "psql primo giuseppe" I'm asked to insert the password
but it tells
"Password authentication failed for user 'giuseppe' "

Giuseppe










^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Client Authentication
  2002-02-22 10:19 Client Authentication Gtrica <gtricarico@intin.it>
@ 2002-02-22 15:47 ` Tom Lane <tgl@sss.pgh.pa.us>
  3 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2002-02-22 15:47 UTC (permalink / raw)
  To: Gtrica <gtricarico@intin.it>; +Cc: pgsql-admin

"Gtrica" <gtricarico@intin.it> writes:
> when I connect using "psql primo giuseppe" I'm asked to insert the password
> but it tells
> "Password authentication failed for user 'giuseppe' "

Did you look in the postmaster log (its stderr output)?  There's often
more info there than is reported to the client.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Client Authentication
  2002-02-22 10:19 Client Authentication Gtrica <gtricarico@intin.it>
@ 2002-02-22 16:17 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  3 siblings, 0 replies; 5+ messages in thread

From: Stephan Szabo @ 2002-02-22 16:17 UTC (permalink / raw)
  To: Gtrica <gtricarico@intin.it>; +Cc: pgsql-admin


On Fri, 22 Feb 2002, Gtrica wrote:

> Hi all
>
> I'm trying to configure Postgress to allow restricted access to database.
> I inserted in the file pg_hba.conf the following line:
> local   primo
> password   ./pass

Why ./pass?  I think pass would be sufficient.




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Client Authentication
  2002-02-22 10:19 Client Authentication Gtrica <gtricarico@intin.it>
@ 2002-02-22 18:54 ` tuan <tuan.nguyen@freesbee.fr>
  3 siblings, 0 replies; 5+ messages in thread

From: tuan @ 2002-02-22 18:54 UTC (permalink / raw)
  To: pgsql-admin

Hi,

May be you should use the program

/usr/local/pgsql/bin/pg_passwd your_password_file

It will ask you to fill in names and passwds and make an encrypted file of it

Tuan

Gtrica wrote:
> 
> Hi all
> 
> I'm trying to configure Postgress to allow restricted access to database.
> I inserted in the file pg_hba.conf the following line:
> local   primo
> password   ./pass
> 
> the file pass in directory  "data" contains the line "giuseppe:gitrica"
> when I connect using "psql primo giuseppe" I'm asked to insert the password
> but it tells
> "Password authentication failed for user 'giuseppe' "
> 
> Giuseppe
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  /\   /\          ___________________________________________________
 (  '''  )        |Les idées qui gouvernent le monde arrivent sur les |
  (@_ _@)         |pattes des pingouins ou sur les baskets des        |
 __( Y )__        |diablotins ou à dos de Gnou (Nietzche modifié)     |
(;;)>^<(;;)       |___________________________________________________|
===\[_]/===
 ¤-((_))-¤                           --------------------



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Client Authentication
  2002-02-22 10:19 Client Authentication Gtrica <gtricarico@intin.it>
@ 2002-02-27 17:52 ` Craig Moon <craig@usight.com>
  3 siblings, 0 replies; 5+ messages in thread

From: Craig Moon @ 2002-02-27 17:52 UTC (permalink / raw)
  To: pgsql-admin

I was having the same problem. In pg_hba.conf I had the following lines:

local all password .superusers
local design password .pg_design

I switched the order of the lines so that the "local all" was last and that
fixed the problem

local design password .pg_design
local all password .superusers

I don't know if that will help you out or not.

Craig


"Gtrica" <gtricarico@intin.it> wrote in message
news:a555sr$1qnc$1@jupiter.hub.org...
> Hi all
>
> I'm trying to configure Postgress to allow restricted access to database.
> I inserted in the file pg_hba.conf the following line:
> local   primo
> password   ./pass
>
> the file pass in directory  "data" contains the line "giuseppe:gitrica"
> when I connect using "psql primo giuseppe" I'm asked to insert the
password
> but it tells
> "Password authentication failed for user 'giuseppe' "
>
> Giuseppe
>
>
>
>
>
>
>





^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2002-02-27 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-22 10:19 Client Authentication Gtrica <gtricarico@intin.it>
2002-02-22 15:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-02-22 16:17 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-02-22 18:54 ` tuan <tuan.nguyen@freesbee.fr>
2002-02-27 17:52 ` Craig Moon <craig@usight.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox