LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-19-2004, 08:43 AM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
Chrooted Apache


Why should someone run a chrooted Apache and not a simple apache?
 
Old 09-19-2004, 10:05 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Because one of the few services on Linux open to random connections is Apache and there are many Apache modules, particularly mod_php that have abysmal security records. If you run Apache chrooted and it gets compromised, the attacker cannot do anything outside the chroot. This means that they can possibly mess with your website, but not do any damage to the rest of your system.

Note that for this to work correct, Apache cannot be run as root, it must be run as some unprivileged user. Also, none of the files in the chroot area should be writable by this user that's running Apache, that way an attacker who manages to exploit Apache hopefully won't even be able to modify your website files! This is a very nice degree of security, certainly much, much better than running Apache as root and letting it access the entire system.
 
Old 09-20-2004, 01:38 AM   #3
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
Yeah, but what if apapache is used for the mod_dav module.

There the directories must be writable by the apache user.
 
Old 09-20-2004, 02:43 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well, that's a concious decision and those directories would be subject to damage if Apache is ever compromised. Better keep up to date with security patches!
 
Old 09-20-2004, 02:48 AM   #5
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
Yeap, that's a common practice
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does chrooted mean? Red Squirrel Linux - Software 6 08-21-2005 08:41 PM
is service chrooted? overlord73 Linux - Security 2 07-06-2005 01:10 AM
chrooted apache problem ixion Linux - Security 19 03-29-2005 03:21 AM
chrooted apache on suse dominant Linux - Security 3 11-10-2004 11:08 AM
chrooted apache server won't start tca23 Linux - Software 3 08-30-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration