From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 168A1138010 for ; Sat, 29 Sep 2012 22:02:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7097E0746; Sat, 29 Sep 2012 22:02:26 +0000 (UTC) Received: from smtp.cs.nyu.edu (SMTP.CS.NYU.EDU [128.122.49.97]) by pigeon.gentoo.org (Postfix) with ESMTP id 1D426E073C for ; Sat, 29 Sep 2012 22:00:24 +0000 (UTC) Received: from ajglap.localdomain (ool-182de1a5.dyn.optonline.net [24.45.225.165]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.14.4) with ESMTP id q8TM0NRm000759 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 29 Sep 2012 18:00:23 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id B5B7B700F0; Sat, 29 Sep 2012 17:59:48 -0400 (EDT) From: Allan Gottlieb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] USERDIR problem with apache on new install (SOLVED) References: Date: Sat, 29 Sep 2012 17:59:48 -0400 In-Reply-To: (Allan Gottlieb's message of "Sat, 29 Sep 2012 11:08:41 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain X-Archives-Salt: 663f96e3-5e29-4b0a-b64d-05b3f3b964db X-Archives-Hash: f4aa7a3677b6321ea7b87df4191bd721 On Sat, Sep 29 2012, Allan Gottlieb wrote: > On my new install USERDIR is not working. > > When I try http://localhost/~gottlieb, firefox says > "you don't have permission to access /~gottlieb" > and the apache error log says > "client denied by server configuration: /local/allan/gottlieb/public_html" > > The file permissions are ok since both > file:///home/gottlieb/public_html/index.html and > file:///home/gottlieb/public_html > work fine. > > So I guess I screwed up the apache install, in particular USERDIR. > > eix shows userdir (see below) > > /etc/conf.d/apache2 has it (see below, diffs = with my working install) > > I have restarted apache, shutdown the machine overnight, reinstalled > apache, but still no go. > > What step did I foolishly miss? > > thanks, > allan Finally! I have a filesystem mounted on /local for my local files including my home directory /local/allan/gottlieb. I put in a symlink /home -> /local/allan/gottlieb so that programs looking in /home would be happy. I had /etc/passwd say /local/allan/gottlieb since it is the real directory. apache doesn't like this. There is probably an option to let it do this since it has several options on symlinks However I simply changed /etc/passwd to say /home/gottlieb and apache is happy. allan