Received: from digitalplanit.wdi.co.uk ([195.13.87.250]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0TICKq18193 for ; Mon, 29 Jan 2001 13:12:21 -0500 (EST) (envelope-from graham@digitalplanit.com) Received: from Graham (dp0002.demon.co.uk [193.237.187.164]) by digitalplanit.wdi.co.uk (8.9.3/8.9.3) with SMTP id SAA31295; Mon, 29 Jan 2001 18:15:07 GMT From: "Graham Vickrage" To: "Tom Lane" Cc: "Postgres Admin" Subject: RE: pg_hba.conf question Date: Mon, 29 Jan 2001 18:13:07 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal In-Reply-To: <24399.980780857@sss.pgh.pa.us> X-Archive-Number: 200101/217 X-Sequence-Number: 594 I have tried entering the following as suggested: - local all reject host all 127.0.0.1 255.255.255.0 ident sameuser I have also tried local all reject host all 127.0.0.1 255.255.255.0 trust After trying the usual command %psql dbname to connect I keep getting the message No pg_hba.conf entry for host localhost, user postgres, database dbname Is there something obvious I am missing???? Thanks Graham -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: 29 January 2001 15:08 To: Graham Vickrage Cc: Postgres Admin Subject: Re: [ADMIN] pg_hba.conf question "Graham Vickrage" writes: > I noticed that you can't use the 'ident sameuser' with local unix sockets, > what is the method of getting round this as I cant use trust for this > database? ident only works with TCP sockets. You could require people to connect to host localhost, ie, use a local TCP connection instead of a Unix socket. Set up 127.0.0.1 as ident sameuser and socket connections as reject in pg_hba.conf. regards, tom lane