From: Dave <dave@hawk-systems.com>
To: Josh Berkus <josh@agliodbs.com>
To: pgsql-php@postgresql.org
Subject: Re: Security - local(TRUST) and php/perl access
Date: Fri, 19 Apr 2002 13:45:15 -0400
Message-ID: <DBEIKNMKGOBGNDHAAKGNIEOJOCAA.dave@hawk-systems.com> (raw)
In-Reply-To: <web-1377481@davinci.ethosmedia.com>
>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.
this is what I was afraid of
>However, I strongly reccommend against using "trust" on any public web
>server.
agreed, thus my concern...
it appears however that if everything is set to password (or better) that
postgres doesn't start on reboot. the startup script reads
case $1 in
start)
[ -d /usr/local/pgsql/lib ] && /sbin/ldconfig -m /usr/local/pgsql/lib
[ -x /usr/local/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec /usr/local/pgsql/bin/pg_ctl -w start > /usr/local/pgsql/errlog
echo -n ' pgsql'
}
;;
essentially what happens is that the startup waits for the password to be
entered, and as such that and any following services in the local/rc directory
are never started... it times out after a time (if memory serves).
workaround without security ramifications?
Dave
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: dave@hawk-systems.com, josh@agliodbs.com
Subject: Re: Security - local(TRUST) and php/perl access
In-Reply-To: <DBEIKNMKGOBGNDHAAKGNIEOJOCAA.dave@hawk-systems.com>
References: <web-1377481@davinci.ethosmedia.com> <DBEIKNMKGOBGNDHAAKGNIEOJOCAA.dave@hawk-systems.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