From owner-freebsd-questions@FreeBSD.ORG Thu Feb 25 23:15:59 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2B58106567D for ; Thu, 25 Feb 2010 23:15:59 +0000 (UTC) (envelope-from pit@joseph-a-nagy-jr.us) Received: from outbound-mail-313.bluehost.com (outbound-mail-313.bluehost.com [67.222.54.6]) by mx1.freebsd.org (Postfix) with SMTP id 6386B8FC14 for ; Thu, 25 Feb 2010 23:15:59 +0000 (UTC) Received: (qmail 25789 invoked by uid 0); 19 Feb 2010 15:09:19 -0000 Received: from unknown (HELO box264.bluehost.com) (69.89.31.64) by cpoproxy3.bluehost.com with SMTP; 19 Feb 2010 15:09:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=joseph-a-nagy-jr.us; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:X-Identified-User; b=k0jKrHYyGaImEDKGS3+WuAuBDpHlZsflWi2Wqy/AyajdvXV07Y9stA2FfmEja8lYStDdowmZZYU/i2PEm8LlGcYlp0g1oTbYid5kZboUluIyX5r9ng/aAHtu4rmyCPaP; Received: from [206.74.86.236] (helo=[192.168.1.100]) by box264.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NiUTn-0008IP-3r for freebsd-questions@freebsd.org; Fri, 19 Feb 2010 08:09:19 -0700 Message-ID: <4B7EA996.70302@joseph-a-nagy-jr.us> Date: Fri, 19 Feb 2010 09:09:10 -0600 From: Programmer In Training User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.7) Gecko/20100203 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4B7D90BC.10901@joseph-a-nagy-jr.us> <29d693b3235665696dd86c5c6b1438cf.squirrel@whipp.no-ip.org> <4B7DB0A2.3080709@joseph-a-nagy-jr.us> <4B7E546B.8010005@infracaninophile.co.uk> In-Reply-To: <4B7E546B.8010005@infracaninophile.co.uk> X-Enigmail-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD26FFEC5F6E60E7B7EE8A000" X-Identified-User: {2250:box264.bluehost.com:ameliora:joseph-a-nagy-jr.us} {sentby:smtp auth 206.74.86.236 authed with pit@joseph-a-nagy-jr.us} Subject: Re: User Directories On FreeBSD 8.0-RELEASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 23:15:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD26FFEC5F6E60E7B7EE8A000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02/19/10 03:05, Matthew Seaman wrote: > On 18/02/2010 21:26, Programmer In Training wrote: >> Possibly not the most secure permissions but I don't remember the >> default (I think it's 644). >=20 > Nope. For directories it's 755. You need the x permission on a > directory to chdir to it. I figured as much, but the normal files (like text files, images and the like) when created don't show up red with an asterisk when I ls the directory as they do now (new files still don't) but I guess it really isn't an issue. >> Apache runs as user:group deamon:daemon >=20 > The default is www:www but I guess you know your own configuration. I know the default is www:www but for some reason, when Apache installed it defaulted to daemon:daemon with nothing being set on my part. >> Trying to su in from root as daemon returns the following: >=20 >> su - daemon >> This account is currently not available. >=20 > Yep. That's because it (correctly) doesn't have a usable login shell. = Try: >=20 > su -m daemon Didn't think of that, thanks. > If you're getting 403 permission denied errors trying to access I am (did I forget to mention that, if so my apologies to the list). > userdirs, then the problem lies within the apache configuration. > What you need to do is configure the permissions based on the home > directory path returned from getpwent() -- by default under FreeBSD > that's /home/user1/ Nevermind that much of the time /home is a symlink= > to /usr/home -- it's the path returned from the passwd file that apache= > uses for comparison, long before trying to resolve any symlinks and ope= n > anything on the hard-drive. That's entirely confusing (not your explanation, just the why). Will change it back to the default and see where it goes from there. Well, I just changed everything referring to the userdir's in http-userdir.conf to the way you suggested. Works just fine. I'd just like to thank everyone that helped me. Much appreciated! Now I can do some ports based virtual hosts so I can put all my websites to their own root. I believe I can handle it from here. (: Once again, a big thank you to everyone who helped. (: Also, to those who asked, I believe Apache 2.2 now compiles in with some of the most common modules by default but I reinstalled with the userdir mod as a dso, just in case. --=20 Yours In Christ, PIT Emails are not formal business letters, whatever businesses may want. --------------enigD26FFEC5F6E60E7B7EE8A000 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLfqmfAAoJEENZQ8DH7rW0l8sIALuj/OVDzox5O8hhCgcBjdSc gsIAX4b0903MDQs/ip+wy4H6U6+NC59JAnqcTyQ2jTKgJxIK60dgHWT8lkpIEVxy c69w6IW6mI7gG9j+TNwqWevd1Ul8E+Z6zUQs7USe9Lgv+9smYeVSitiZBlGcpo8M QpcBJpr+efm7XxJQdducMSPGP7G9m8X4IW3+MalE1DC/QmI9EzIkTACUtgmlXTdY ywDpO2jY6cXQg3dHlBvsE3Wv8QdfDXLQSajLq5BTrHEmBTKs/OsLSb9WAK2McxPv lCryM3FiCPRDephnWCKR7EohQRaNVHCY0lI6i5KhYdXzOArPzinVXAMlQptTj/Q= =MX5n -----END PGP SIGNATURE----- --------------enigD26FFEC5F6E60E7B7EE8A000--