Page 1 of 1

SuExec and VirtualHosts

PostPosted: 18. October 2010 11:37
by chrille156
Hi there.

My goal is to set up a virtualhost for a user and that he doesnt have read-access outside his home-dir when using PHP.

It looks lika suexec is enabled in apache already so I did the following:

1. Created a user called "test".

2. Made it impossible for him to read something outside his home dir in /etc/passwd (with /bin/rbash)

3. Added the following to etc/extra/httpd-vhosts.conf:

<VirtualHost *:80>
ServerName test.mydomain.com
SuexecUserGroup test test
DocumentRoot /home/test
</VirtualHost>

4. Reloaded: /opt/lampp/lampp reloadapache

He can still se everything on the server. Why?

Thank you in advance!

Re: SuExec and VirtualHosts

PostPosted: 11. November 2010 10:37
by lukasamd
I have the same problem - i have 3 domains and would like to execute as other users:
domain1 -> user1
domain2 -> user1
domina3 -> user2

I added SuexecUserGroup line in vhosts and it doesn't work...