X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9555130F145 for ; Tue, 17 Jun 2003 14:40:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 33634-08 for ; Tue, 17 Jun 2003 11:39:57 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 9D09530F110 for ; Tue, 17 Jun 2003 11:39:56 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h5HEcx4w014412; Tue, 17 Jun 2003 08:38:59 -0600 (MDT) Date: Tue, 17 Jun 2003 08:37:41 -0600 (MDT) From: "scott.marlowe" To: Mel Jamero Cc: Subject: Re: psql DBNAME -U USER (how to disable -U option?) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Archive-Number: 200306/201 X-Sequence-Number: 9192 On Tue, 17 Jun 2003, scott.marlowe wrote: > On Tue, 17 Jun 2003, Mel Jamero wrote: > > > to get to the psql interface we execute: > > > > psql dbname -U user > > > > is it possible to disable the -U option such that a user cannot invoke the > > privileges of a database superuser such as postgres? > > > > tried looking up pg_hba.conf regarding 'password' authentication, the man > > pages and the archives but didn't get too lucky. > > Did you stop / start postgresql after the changes? Make sure you don't > have a line for "trust" 127.0.0.1 as well. As a followup to that, look into ident method of authentication as well.