From owner-freebsd-questions@FreeBSD.ORG Thu Nov 27 11:31:35 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 6BF6416A4CE for ; Thu, 27 Nov 2003 11:31:35 -0800 (PST) Received: from mail.caraldi.com (caraldi.com [62.212.102.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F2DE43FE0 for ; Thu, 27 Nov 2003 11:31:33 -0800 (PST) (envelope-from jbq@caraldi.com) Received: from watt.intra.caraldi.com (watt.intra.caraldi.com [192.168.100.101]) by mail.caraldi.com (Postfix) with ESMTP id 6CE59221F for ; Thu, 27 Nov 2003 20:31:28 +0100 (CET) Received: by watt.intra.caraldi.com (Postfix, from userid 1001) id 1D8CC73; Thu, 27 Nov 2003 20:31:28 +0100 (CET) Date: Thu, 27 Nov 2003 20:31:27 +0100 From: Jean-Baptiste Quenot To: FreeBSD-questions Message-ID: <20031127193125.GA3444@watt.intra.caraldi.com> Mail-Followup-To: FreeBSD-questions References: <000a01c3b440$12ec79a0$0901a8c0@bloodlust> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <000a01c3b440$12ec79a0$0901a8c0@bloodlust> User-Agent: Mutt/1.5.5.1i 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: Thu, 27 Nov 2003 19:31:35 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Xpression: > 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 depends on what you're trying to do. 1) Typically, user websites go into their home directory like /home/userN, in a folder called "public_html". That way, the user website can be accessed at http://yourwebsite/~userN/. 2) However, you may want to put the user websites in another location, there is no problem, but remember to set the permissions correctly. Every user directory must be *owned* by that very user. For web usage, directories should have mode 755, and files 644. 3) If you want to have your user directories outside of the document root, you will have to setup an Alias for each user, or to define another virtual host. But that becomes close to solution 1 in that case. Cheers, --=20 Jean-Baptiste Quenot http://caraldi.com/jbq/ --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/xlEN9xx3BCMc9gsRAhmFAJ4z39HcBCAaHiOK+2voiKSGg+7b9wCgk8QS 2fxFQdClnISeirWWmLdPr0o= =FF62 -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--