X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 3602AD1C92B for ; Mon, 21 Jul 2003 16:24:19 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 92085-02 for ; Mon, 21 Jul 2003 16:24:18 +0000 (GMT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by svr1.postgresql.org (Postfix) with ESMTP id CA27BD1C929 for ; Mon, 21 Jul 2003 13:24:17 -0300 (ADT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.4) with SMTP id h6LGOF0P025516; Mon, 21 Jul 2003 11:24:15 -0500 Reply-To: From: "Nick Fankhauser" To: "Olivier Reuland" , Subject: Re: common_fields: permission denied Date: Mon, 21 Jul 2003 11:22:50 -0500 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.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <000301c34f87$6931da80$6310c281@Swip> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/203 X-Sequence-Number: 9543 Olivier- The pg_hba.conf file controls how users connect to the database, but if the user does not have grants on the specific table within the database, I think you'd be getting an error similar to the one you describe. Does the user you created either have "dba" privileges or select access on the table? -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Olivier Reuland > Sent: Monday, July 21, 2003 7:56 AM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] common_fields: permission denied > > > Hi there, > > I have a problem accessing my postgres database when using a specific > user... > > If I run and pg_dumpall using the postgres linux user I have no problem. > Then I tried to add a new user only for one database (let say "user1" and > "db1"). My pg_hba.conf looks like : > > local all all trust > host all all 127.0.0.1 255.255.255.255 trust > host all all 0.0.0.0 255.255.255.255 reject > > When I try to run "./pg_dump --username=user1 --password db1" I have an > error saying : > > pg_dump: Attempt to lock table "common_fields" failed. ERROR: > common_fields: permission denied > > > Any idea ? > > Thanks > > Oliver > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html >