From: Bruce Young <hbrucey@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Hiding passwords in PHP files
Date: Fri, 28 Feb 2003 16:07:38 -0800 (PST)
Message-ID: <20030301000738.4871.qmail@web10402.mail.yahoo.com> (raw)
Hi all,
How can i protect the password in the php file from being read by other OS
users.
i tried chmod but it will not work if "other" does not have read privileges to
the file.
is there another way around this? i will have a few OS users on my box and i
dont want them to psql -U superuser dbname and do whatever, so i fixed that in
the pg_hba.conf file to request a password.. but now i need to supply a
password in the .php files to connect.
tried messing around with ident, could not get it working. gonna try again when
i come home tonight.. any suggestions?
thanks for any help
- bruce
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
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: hbrucey@yahoo.com
Subject: Re: Hiding passwords in PHP files
In-Reply-To: <20030301000738.4871.qmail@web10402.mail.yahoo.com>
References: <20030301000738.4871.qmail@web10402.mail.yahoo.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