Date: Wed, 26 Nov 2003 23:05:49 +0000 From: Jez Hancock <jez.hancock@munk.nu> To: FreeBSD-questions <questions@FreeBSD.ORG> Subject: Re: Adding users... Message-ID: <20031126230549.GC37786@users.munk.nu> In-Reply-To: <000a01c3b440$12ec79a0$0901a8c0@bloodlust> References: <000a01c3b440$12ec79a0$0901a8c0@bloodlust>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 26, 2003 at 12:09:38PM -0500, Xpression wrote: > Hi list, I installed Apache and ProFTPd servers, users can > upload tehir sites via FTP, I have configured in Apache > DocumentRoot in /usr/local/apache2/wwwroot, my question is: > can I create users which their home directories path is > /usr/local/apache2/wwwroot/userN ??? Is this way trustable > ??? I was thinking it because if it's no possible I have to > change my DocumentRoot wherever the main site is > located...thanks... It is possible, but perhaps not the best option because _any_ files a user uploads will be immediately accessible via the web. If you did want to do it, check out: man pw There's a switch you can use to change the default home directory for users created with pw - you can also make it permanent by modifying /etc/pw.conf. Alternatively you could just opt to keep the default home dir as /home and then create symlinks inside joe's home dir: /home/joe/public_html -> /usr/local/apache2/wwwroot/joe However, if you decide to go down that route, consider using /var/ instead of /usr/local/ for your web files since /var is a more logical place to place web files that change often (files that VARy over time). Have a look at: man hier for more info. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031126230549.GC37786>