Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Focus-Linux
[Top] [All Lists]

Re: Deny Access To configuration file using php scripts

Subject: Re: Deny Access To configuration file using php scripts
Date: Tue, 1 Mar 2005 20:13:00 +0100
Le Mardi 1 Mars 2005 18:54, raT a écrit :
the first thing they do is a
system ('cat /var/www/path to config file');
inside a php script

use php safe_mode, run php scripts in suexec.

my problem is to deny this file from being read throu the script since
the apache deamon runs as nobody

you can have multiple virtual hosts running under their own uid/gid -see 
virtual host configuration and suexec doc for apache

and it has to have read permision to the configuration file.

my users have shell acount 

they shouldn't ! What do you expect ? Do they really have to have a shell 
account ???
-- 
+---------------------------------------+
| David Morel <david.morel@amakuru.net> |
| OpenPGP public key :                  |
| http://www.amakuru.net/dmorel.asc     |
+---------------------------------------+

Attachment: pgpAuzjQCSNwk.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>