Date: Fri, 19 Feb 2010 09:09:10 -0600 From: Programmer In Training <pit@joseph-a-nagy-jr.us> To: freebsd-questions@freebsd.org Subject: Re: User Directories On FreeBSD 8.0-RELEASE Message-ID: <4B7EA996.70302@joseph-a-nagy-jr.us> In-Reply-To: <4B7E546B.8010005@infracaninophile.co.uk> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <snip> >> 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. <snip> > 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. <snip> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B7EA996.70302>