From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 15:35:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8800016A4CE for ; Mon, 9 Feb 2004 15:35:54 -0800 (PST) Received: from deluge.umist.ac.uk (deluge.umist.ac.uk [130.88.120.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D64143D1F for ; Mon, 9 Feb 2004 15:35:54 -0800 (PST) (envelope-from lewiz@red.lewiz.org) Received: from lh014.halls.umist.ac.uk ([130.88.163.14] helo=yellow.lewiz.org) by deluge.umist.ac.uk with esmtp (Exim 4.24) id 1AqKwT-00011T-35 for questions@freebsd.org; Mon, 09 Feb 2004 23:35:53 +0000 Received: from red.lewiz.org ([192.168.0.4]) by mail.lewiz.org with smtp (Exim 4.30; FreeBSD) id 1AqKyG-000F6E-43 for questions@freebsd.org; Mon, 09 Feb 2004 23:37:44 +0000 Received: (nullmailer pid 58044 invoked by uid 4001); Mon, 09 Feb 2004 23:37:43 -0000 Date: Mon, 9 Feb 2004 23:37:43 +0000 From: Lewis Thompson To: FreeBSD-questions Message-ID: <20040209233743.GA58010@lewiz.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline X-GPG-Fingerprint: 90A4 939E 3847 A3E4 8103 2A48 22DA B428 542F ED3F X-GPG-Info: http://www.lewiz.org/~lewiz/pgpkey / horowitz.surfnet.nl User-Agent: Mutt/1.5.6i X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean Subject: Shell script containing passwords. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 23:35:54 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm trying to write a script to use with the Apache auth plugin mod_auth_any. I have the whole setup working, bar the script that does the authentication. I am worried that because the script must be read/writeable by the Apache user (www) that anybody that can write a PHP script on my machine can read the auth script and read the passwords that would be contained within -- those to my MySQL server. Is there any way I can have a script that is not readable by a user, while still allowing that user to execute it? Maybe through using a wrapper of some sort? I do not have UFS2 so I cannot use ACLs. Any suggestions for this as I'm stumped. Thanks very much, -lewiz. --=20 I was so much older then, I'm younger than that now. --Bob Dylan, 1964. ------------------------------------------------------------------------ -| msn:purple@lewiz.net | jabber:lewiz@jabber.org | url:www.lewiz.org |- --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAKBnHItq0KFQv7T8RAggkAKDlAeCfwgk73L5ImP29gnfT6z/zTQCbB6JH d00AUpVg9Crk3qDTo308MKw= =Zblf -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--