Date: Thu, 27 Nov 2003 20:31:27 +0100 From: Jean-Baptiste Quenot <jb.quenot@caraldi.com> To: FreeBSD-questions <questions@FreeBSD.ORG> Subject: Re: Adding users... Message-ID: <20031127193125.GA3444@watt.intra.caraldi.com> In-Reply-To: <000a01c3b440$12ec79a0$0901a8c0@bloodlust> References: <000a01c3b440$12ec79a0$0901a8c0@bloodlust>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031127193125.GA3444>