Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by postgresql.org (Postfix) with ESMTP id 34E82475932 for ; Fri, 26 Apr 2002 10:26:18 -0400 (EDT) Received: from 1cust208.tnt2.richmond.in.da.uu.net ([63.26.248.208] helo=nick) by falcon.prod.itd.earthlink.net with smtp (Exim 3.33 #2) id 1716g0-0002tu-00; Fri, 26 Apr 2002 07:26:20 -0700 Reply-To: From: "Nick Fankhauser" To: "Steven Cuthbertson" , Subject: Re: Permission on tables Date: Fri, 26 Apr 2002 09:24:55 -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) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <3CB67202000037AE@webmail.tie.cl> Importance: Normal X-Archive-Number: 200204/265 X-Sequence-Number: 4153 > grant ALL on mytable to PUBLIC; > > Q: Is this dangerous? What is encompassed by "ALL"? Read? Write? Sounds unwise to me, but I'm not a PHP-er. In the Tomcat/Apache world, I can tell you that we generally grant select on mytable to "www-data". "www-data is the user that Apache runs as by default. I'd suggest finding the Apache or PHP user & then granting only those privileges needed to only that user. Are you sure that you aren't just getting a more general rejection of your connection due to problem in pg_hba? You mention that the servers are separated. You could test the connectivity & authorization from X to Y by trying (from X) psql -hY regards, -Nick --------------------------------------------------------------------- Nick Fankhauser nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788 doxpop - Court records at your fingertips - http://www.doxpop.com/