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. |

| Subject: | Re: Apache+PHP+ftp security |
|---|---|
| Date: | 29 Mar 2005 21:17:50 -0000 |
In-Reply-To: <20050325185444.GA3145@clusterdigital.com> Well, I don't know if this is "the right" way, but I had this problem last week, too. My Solution: · Virtual FTP accounts (no system user, e.g. proftpd & mysql auth). Restriction to homedir of the user. · Apache compiled with suexec-min uid 1000. (1.3.x) A new uid for each user (in the mysql db) Every virtualhost is running under his own user. (unfortunatly safemode must be off, running php through cgi would be a good idea for most domains) Don't know, if this is a good way (any remarks?), but with this, i have no system user (neither ftp, nor httpd), every virtual domain with his own user (and due to gid the normal filesystem is not readable). Suexec CGI ist working, changing from the homedir (/home/www/user1) to another (/home/www/user2) is not possible with php. With safemode on (and perhaps a other ftpd) this should be safe, shouldn't it? As i said, no idea if this is the right way :) This is only for hosting a few friends on my root server. Perhaps a few statements will comment this.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Apache+PHP+ftp security, Scott Fagg |
|---|---|
| Next by Date: | Re: Apache+PHP+ftp security, Mailinglists Address |
| Previous by Thread: | RE: Apache+PHP+ftp security, Scott Fagg |
| Next by Thread: | Re[2]: Apache+PHP+ftp security, barti |
| Indexes: | [Date] [Thread] [Top] [All Lists] |