Your SlideShare is downloading. ×
0
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Sfd hanoi2012 nguyen nang thang   sfd-2012_chroot_apache
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Sfd hanoi2012 nguyen nang thang sfd-2012_chroot_apache

219

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
219
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 2012
  • 2. S F D 2012 @ HUSSecuring an Apache Web Server using Chroot Nguyễn Năng Thắng Fedora Ambassador Vietnam HN Community Space, HanoiLUG, Ubuntu-vn thangnguyennang1988 [at] gmail [dot] com This presentation is licensed under a Creative Commons 2 Attribution-ShareAlike (CC-BY-SA) 3.0 license.
  • 3. Chroot () environmentChroot jailWorkshop 3
  • 4. Chroot Environmentchroot () environment? 4
  • 5. Chroot () Environment 5
  • 6. Chroot Environment “chroot jail”? 6
  • 7. Workshop 7
  • 8. ObjectivesBuilding a chroot environmentSecuring an Apache Web Server using chrootRequirementsServer: Apache Web ServerServer OS: CentOS-5Jail directory: chroot 8
  • 9. TODOStep1. Create a jail directoryStep2. Install ApacheStep3. Install mod_chrootStep4. Configure Apache mod_chrootStep5. Disable SELinuxStep6. Patch up /etc/init.d/httpdStep7. Start chrooted httpd 9
  • 10. Step1. Create a jail directory 10
  • 11. Step2. Install Apache 11
  • 12. Install ApacheInstall required packages# httpd, httpd-devel, php ...Create required directory /chroot/var/www/html /chroot/var/run /chroot/tmp /chroot/home/httpdNotes /chroot/var/run: store PID ... (root.root) /chroot/tmp: used by many scripts ... (777/???) 12
  • 13. Step3. Install mod_chroot 13
  • 14. Install mod_chrootThe mod_chroot projectDownload source code from the InternetUntar the source code Using apxs to compile and install the sourcecode 14
  • 15. Step4. Configure Apache mod_chroot 15
  • 16. Step5. Disable SELinux 16
  • 17. Step6. Patch up /etc/init.d/httpd 17
  • 18. Step7. Start chrooted httpd 18
  • 19. Thank you! 19
  • 20. Questions? 20

×