pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Steven Cuthbertson <steven@tie.cl>
To: pgsql-admin@postgresql.org
Subject: Re: Permission on tables
Date: Fri, 26 Apr 2002 09:24:55 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGGELIENAA.nickf@ontko.com> (raw)
In-Reply-To: <3CB67202000037AE@webmail.tie.cl>
> 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/
view thread (5+ messages) latest in thread
Message-ID: <NEBBLAAHGLEEPCGOBHDGGELIENAA.nickf@ontko.com> Permalink: ../NEBBLAAHGLEEPCGOBHDGGELIENAA.nickf@ontko.com/ Also on: postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGGELIENAA.nickf@ontko.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: nickf@ontko.com, steven@tie.cl Subject: Re: Permission on tables In-Reply-To: <NEBBLAAHGLEEPCGOBHDGGELIENAA.nickf@ontko.com> References: <3CB67202000037AE@webmail.tie.cl> <NEBBLAAHGLEEPCGOBHDGGELIENAA.nickf@ontko.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox