Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f95IBWn91616 for ; Fri, 5 Oct 2001 14:11:32 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f95IBHI17422; Fri, 5 Oct 2001 14:11:17 -0400 (EDT) To: "Pedro Fonseca" cc: pgsql-admin@postgresql.org Subject: Re: Authorization problem In-reply-to: <9pkop1$1ohb$1@news.tht.net> References: <6352.1002131175@sss.pgh.pa.us> <9pkop1$1ohb$1@news.tht.net> Comments: In-reply-to "Pedro Fonseca" message dated "Fri, 05 Oct 2001 17:56:28 +0100" Date: Fri, 05 Oct 2001 14:11:16 -0400 Message-ID: <17419.1002305476@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200110/58 X-Sequence-Number: 2304 "Pedro Fonseca" writes: > I mean, this is what the 'trust' AUTHTYPE does! Quite. > Isn't this a bad thing? If you don't trust the users on your local machine, you can't use "trust" authtype for local connections. It's as simple as that. The reason why there's not an equivalent of "ident" auth for local socket connections is that most platforms don't provide any way to find out who owns the other end of a local socket connection. You're wasting your breath to complain to the Postgres developers about an OS-level deficiency. I'd suggest using ident and TCP/IP. You can set PGHOST=127.0.0.1 in your environment so you don't need to think about what kind of connection you are using. BTW, PG 7.2 will support ident-like auth on local connections for a small number of platforms where there is such a facility. But that doesn't help you today, and won't ever help you if you're not on one of those platforms. regards, tom lane