1

[ubuntu] How to jail(kit) each users into their individual home directories using bash script?

view story
linux-howto

http://ubuntuforums.org – I am using Ubuntu 12.10, Apache2.2, PHP-FPM. My aim is to set up a working (free) shared hosting system, that means I want to create new Linux users and jail (equals to chroot, I guess) them into their home directories so they absolutely won't have permission to touch the main file system or other users' files. I set each virtualhost's DocumentRoot to a public_html folder in the home directories. I have already done all of this, expect jailing. I looked after the topic and I found Jailkit that looked pretty easy, but unfortunately I couldn't get it worked. I followed this tutorial but except / (Hardware)