I was wondering what would be the easiest and most secured way on a web server to prevent users from browsing directories other than their home folder.
I have a mutualised web server with several users and they all have a
public_html directory. Using PHP, they could easily include or list other user's files.
How could I make them think they have reached the server's root when they try to
cd ../ in their home directory or when they
I was thinking about chroot jail. Is there an easiest way using only modes? Apache? PHP config? Other linux tools?
Thank you very much for your help.
Edit : Forgot to say I'm using CentOS 6.4 and Debian servers.
Edit 2 : I don't need users to have a shell access.