Hiding passwords in PHP files

From: Bruce Young <hbrucey(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Hiding passwords in PHP files
Date: 2003-03-01 00:07:38
Message-ID: 20030301000738.4871.qmail@web10402.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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/

Browse pgsql-admin by date

  From Date Subject
Next Message Oliver Elphick 2003-03-01 13:02:01 Re: Users and groups
Previous Message Tom Lane 2003-02-28 23:54:13 CLUSTER loses nulls (was Re: [ADMIN] Still a bug in the VACUUM)