Web hosting, restrict user to access only his folder

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: openbsd
Date: Friday, August 13, 2010 - 1:04 pm

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 folder (owner : firstxx ; chmod 755)
www.2nd.xx folder (owner : 2ndxx ; chmod 755)
www.third.xx folder (owner : thirdxx ; chmod 755)

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 ?
thank's.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Web hosting, restrict user to access only his folder, openbsd, (Fri Aug 13, 1:04 pm)
Re: Web hosting, restrict user to access only his folder, Joachim Schipper, (Fri Aug 13, 1:22 pm)
Re: Web hosting, restrict user to access only his folder, Daniel Ouellet, (Fri Aug 13, 1:55 pm)
Re: Web hosting, restrict user to access only his folder, Bret S. Lambert, (Fri Aug 13, 1:55 pm)
Re: Web hosting, restrict user to access only his folder, Benny Löfgren, (Fri Aug 13, 2:37 pm)
Re: Web hosting, restrict user to access only his folder, Stuart Henderson, (Sat Aug 14, 2:29 am)
Re: Web hosting, restrict user to access only his folder, Chris Cappuccio, (Sun Aug 22, 12:53 pm)
Re: Web hosting, restrict user to access only his folder, Benny Löfgren, (Sun Aug 22, 1:21 pm)
Re: Web hosting, restrict user to access only his folder, Joel Wiramu Pauling, (Sun Aug 22, 5:31 pm)