Re: Web hosting, restrict user to access only his folder

2010-08-22 Thread Joel Wiramu Pauling
lightty does however. So you may want to look into it over apache. On 23/08/2010, Benny LC6fgren wrote: > Chris Cappuccio wrote: >> Benny L??fgren [bl-li...@lofgren.biz] wrote: >>> (I've long wished for a privsep apache with separate chroot():s for >>> every virtual domain... one of these days I'

Re: Web hosting, restrict user to access only his folder

2010-08-22 Thread Benny Löfgren
Chris Cappuccio wrote: Benny L??fgren [bl-li...@lofgren.biz] wrote: (I've long wished for a privsep apache with separate chroot():s for every virtual domain... one of these days I'm gonna have to look into it, but I suppose it's not trivial to implement or someone would have done it by now. :-)

Re: Web hosting, restrict user to access only his folder

2010-08-22 Thread Chris Cappuccio
Benny L??fgren [bl-li...@lofgren.biz] wrote: > > (I've long wished for a privsep apache with separate chroot():s for > every virtual domain... one of these days I'm gonna have to look > into it, but I suppose it's not trivial to implement or someone > would have done it by now. :-) ) > > I thin

Re: Web hosting, restrict user to access only his folder

2010-08-15 Thread openbsd
Thank a lot for your reply. Now, it works, what i done : All users (firstorg,2ndcom,thirdnet are members of users) cd /var/www/domains chown -R firstorg www.first.org chown -R 2ndcom www.2nd.com chown -R third.net www.third.net chgrp -R users * chmod -R 745 * Now, user "2ndcom" can only view, mod

Re: Web hosting, restrict user to access only his folder

2010-08-14 Thread Lars Nooden
On Sat, 14 Aug 2010, open...@e-solutions.re wrote: i used ftpd (-4Dln) for users to upload ... You may wish to reconsider that and use sshd's built in chroot with sftp. Easier to set up and use. A lot of people 'ask' for FTP by name meaning a generic way to up load. Even lame clients like Fi

Re: Web hosting, restrict user to access only his folder

2010-08-14 Thread Stuart Henderson
If you have already setup each user in /etc/ftpchroot, then it sounds like you haven't set the home directories correctly in the user accounts. On 2010-08-13, wrote: > Hi, > > I installed OpenBSD 4.7 for web hosting (test). > So i have 3 websites for 3 users (1 site per user) : > www.first.xx (

Re: Web hosting, restrict user to access only his folder

2010-08-13 Thread Benny Löfgren
Daniel Ouellet wrote: i used ftpd (-4Dln) for users to upload their website(with /etc/ftpchroot configured). My problem, user can see content of others. For example, 2ndxx can update his folder but he can see also the content of "firstxx" folder. How can i restrict that ? Well, you could setu

Re: Web hosting, restrict user to access only his folder

2010-08-13 Thread Bret S. Lambert
On Sat, Aug 14, 2010 at 12:04:56AM +0400, open...@e-solutions.re wrote: > Hi, > > I installed OpenBSD 4.7 for web hosting (test). > So i have 3 websites for 3 users (1 site per user) : > www.first.xx (user : firstxx) > www.2nd.xx (user : 2ndxx) > www.third.xx (user : thirdxx) > > All web pages a

Re: Web hosting, restrict user to access only his folder

2010-08-13 Thread Daniel Ouellet
i used ftpd (-4Dln) for users to upload their website(with /etc/ftpchroot configured). My problem, user can see content of others. For example, 2ndxx can update his folder but he can see also the content of "firstxx" folder. How can i restrict that ? Well, you could setup no login in the master.

Re: Web hosting, restrict user to access only his folder

2010-08-13 Thread Joachim Schipper
On Sat, Aug 14, 2010 at 12:04:56AM +0400, open...@e-solutions.re wrote: > Hi, > > I installed OpenBSD 4.7 for web hosting (test). > So i have 3 websites for 3 users (1 site per user) : > www.first.xx (user : firstxx) > www.2nd.xx (user : 2ndxx) > www.third.xx (user : thirdxx) > > All web pages a

Web hosting, restrict user to access only his folder

2010-08-13 Thread openbsd
Hi, I installed OpenBSD 4.7 for web hosting (test). So i have 3 websites for 3 users (1 site per user) : www.first.xx (user : firstxx) www.2nd.xx (user : 2ndxx) www.third.xx (user : thirdxx) All web pages are stored in /var/www/domains/ So in /var/www/domains we have 3 folders : www.first.xx fol