pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Dave <dave@hawk-systems.com>
To: pgsql-php@postgresql.org
Subject: Re: Security - local(TRUST) and php/perl access
Date: Fri, 19 Apr 2002 09:10:30 -0700
Message-ID: <web-1377481@davinci.ethosmedia.com> (raw)
In-Reply-To: <DBEIKNMKGOBGNDHAAKGNMEMIOCAA.dave@hawk-systems.com>

Dave,

> Currently we TRUST local users so pretty much any user can access any
> database
> from the shell.
> When PHP or Perl(DBI) accesses the postgres database, can they simply
> specify
> any userid and database set as a local user would, or are they
> restricted to the
> "host sameuser 0.0.0.0 0.0.0.0 password" setting in pg_hba.conf

Anything running on the same machine, whether a shell, PHP, or Perl, is
covered by the "trust" statement, unless you make the mistake of
routing your connection through an external interface. 

However, I strongly reccommend against using "trust" on any public web
server.

-Josh Berkus



view thread (3+ messages)  latest in thread

Message-ID: <web-1377481@davinci.ethosmedia.com>
Permalink:  ../web-1377481@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1377481@davinci.ethosmedia.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-php@postgresql.org
  Cc: josh@agliodbs.com, dave@hawk-systems.com
  Subject: Re: Security - local(TRUST) and php/perl access
  In-Reply-To: <web-1377481@davinci.ethosmedia.com>
  References: <DBEIKNMKGOBGNDHAAKGNMEMIOCAA.dave@hawk-systems.com> <web-1377481@davinci.ethosmedia.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