I found and I give you the answer (solution ?).

Thanks to Alexey Vlasov [email protected] (object "chroot and peruser" of 
01/12/2007 who give one step of solution with his problem of additionnal folders for user 
path.

In my configuration I put correct home folder of user in definition of of user, this is a 
need for "chrooting" with ssh & sftp
- in my system the user "test" have the path "/home/test"
When I'm connect to server throw sftp the user is "chrooted" in their home 
folder.

For chroot option in processor directive I've written the good folder "/home/test" for 
user "test"
<Processor test>
 User test
 Group test
 Chroot /home/test
</Processor>

Apache server start correctly with found a correct path : "/home/test" but this one is 
MAY BE added with path of user "test" and I need to put root path tio keep a good one :

<Processor test>
 User test
 Group test
 Chroot /
</Processor>

And it works ! You can also put "Chroot ."

The inconvenient is in the page of status, only the path given in chroot option is show : 
"/"

may be this helps sombody, Salem.


On 27/01/2010 16:29, aguytech wrote:
I've made little tests fort this problem :

without chroot option in Processor directive
- I change the user & group rights on folder /home/test/public_html &
the server responds perfectly (forbidden or not)

with chroot option in directive Processor
- I put a wrong path "/home/test21" for chroot & the server doesn't
start and reponds : path not exists
- I put a good path "/home/test" for chroot option & the server start
correctly but doesn't serve any page else 403 error ???

Rergards


On 27/01/2010 13:14, aguytech wrote:
Hello,

I used peruser on gentoo with apache 2.2.14-r1

My configuration for virtualhost are :

<VirtualHost *:80>
...
DocumentRoot /home/test/public_html
...
<IfModule mpm_peruser_module>
<Processor test>
User test
Group test
#Chroot /home/test
</Processor>
ServerEnvironment test
</IfModule>
</VirtualHost>

it's work fine BUT when I uncomment option "Chroot /home/test" in
directive processor, apache don't whant to serve any pages & return an
error 403 "Forbidden" ???

- apache server runs with apache:apache
- rights on /home/test/* is well 770 for test:test

I've tried :
<Processor test>
User apache
Group test
#Chroot /home/test
</Processor>
with rights 770 on /home/test for apache:test
it's ddoesn't change anything ???

Anybody have any explanations ?? problem comes from my configuration or
is a bug from peruser ??
Thaks for all ;)

_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to