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 34F27D1C947 for ; Tue, 22 Jul 2003 11:28:27 +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 64492-07 for ; Tue, 22 Jul 2003 11:28:26 +0000 (GMT) Received: from mbx.unige.ch (mbx.unige.ch [129.194.9.229]) by svr1.postgresql.org (Postfix) with ESMTP id A6ADFD1C4DF for ; Tue, 22 Jul 2003 08:28:25 -0300 (ADT) Received: from CONVERSION-DAEMON.mbx.unige.ch by mbx.unige.ch (PMDF V6.2-X3 #30614) id <0HIF00001BVEA0@mbx.unige.ch> for pgsql-admin@postgresql.org; Tue, 22 Jul 2003 13:28:28 +0200 (MEST) Received: from Swip ([129.194.16.99]) by mbx.unige.ch (PMDF V6.2-X3 #30614) with ESMTP id <0HIF00MNLBVE2G@mbx.unige.ch>; Tue, 22 Jul 2003 13:28:26 +0200 (MEST) Date: Tue, 22 Jul 2003 13:28:24 +0200 From: Olivier Reuland Subject: RE : common_fields: permission denied In-reply-to: To: nickf@ontko.com Cc: pgsql-admin@postgresql.org Message-id: <000801c35044$5d522a90$6310c281@Swip> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.4510 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Comment: This message was scanned against viruses by mbx.unige.ch. X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/211 X-Sequence-Number: 9551 Hi Nick, I have done a "GRANT ALL PRIVILEGES ON DATABASE db1 TO user1". The message I had back was "GRANT". But this was not enough, I had to give access to all tables... It's working now, thanks. Oliver > -----Message d'origine----- > De : pgsql-admin-owner@postgresql.org=20 > [mailto:pgsql-admin-owner@postgresql.org] De la part de Nick=20 > Fankhauser > Envoy=E9 : lundi, 21. juillet 2003 18:23 > =C0 : Olivier Reuland; pgsql-admin@postgresql.org > Objet : Re: [ADMIN] common_fields: permission denied >=20 >=20 > Olivier- >=20 > The pg_hba.conf file controls how users connect to the=20 > database, but if the user does not have grants on the=20 > specific table within the database, I think you'd be getting=20 > an error similar to the one you describe. Does the user you=20 > created either have "dba" privileges or select access on the table? >=20 > -Nick >=20 > > -----Original Message----- > > From: pgsql-admin-owner@postgresql.org=20 > > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of=20 > 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=20 > a specific=20 > > user... > > > > If I run and pg_dumpall using the postgres linux user I have no=20 > > problem. Then I tried to add a new user only for one=20 > database (let say=20 > > "user1" and "db1"). My pg_hba.conf looks like : > > > > local all all=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > trust > > host all all 127.0.0.1=20=20=20=20=20=20=20=20=20 > 255.255.255.255 trust > > host all all 0.0.0.0=20=20=20=20=20=20=20=20=20=20= =20 > 255.255.255.255 reject > > > > When I try to run "./pg_dump --username=3Duser1 --password=20 > db1" I have=20 > > an error saying : > > > > pg_dump: Attempt to lock table "common_fields" failed. ERROR: > > common_fields: permission denied > > > > > > Any idea ? > > > > Thanks > > > > Oliver > > > > > > ---------------------------(end of=20 > > broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/docs/faqs/FAQ.html > > >=20 >=20 > ---------------------------(end of=20 > broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings >=20