X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6BD32475E97 for ; Fri, 28 Feb 2003 19:23:51 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 95941-09 for ; Fri, 28 Feb 2003 19:23:49 -0500 (EST) Received: from web10402.mail.yahoo.com (web10402.mail.yahoo.com [216.136.130.94]) by postgresql.org (Postfix) with SMTP id EA12D475E75 for ; Fri, 28 Feb 2003 19:07:35 -0500 (EST) Message-ID: <20030301000738.4871.qmail@web10402.mail.yahoo.com> Received: from [24.233.52.93] by web10402.mail.yahoo.com via HTTP; Fri, 28 Feb 2003 16:07:38 PST Date: Fri, 28 Feb 2003 16:07:38 -0800 (PST) From: Bruce Young Subject: Hiding passwords in PHP files To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/439 X-Sequence-Number: 7637 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/