From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 15:05:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F086216A4D0 for ; Wed, 26 Nov 2003 15:05:52 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E15343FCB for ; Wed, 26 Nov 2003 15:05:49 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD) id 1AP8jF-000ASu-L9 for questions@FreeBSD.ORG; Wed, 26 Nov 2003 23:05:49 +0000 Date: Wed, 26 Nov 2003 23:05:49 +0000 From: Jez Hancock To: FreeBSD-questions Message-ID: <20031126230549.GC37786@users.munk.nu> Mail-Followup-To: FreeBSD-questions References: <000a01c3b440$12ec79a0$0901a8c0@bloodlust> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000a01c3b440$12ec79a0$0901a8c0@bloodlust> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Adding users... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 23:05:53 -0000 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/