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 86901138010 for ; Sat, 29 Sep 2012 17:30:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A32DE0788; Sat, 29 Sep 2012 17:30:13 +0000 (UTC) Received: from smtp.cs.nyu.edu (SMTP.CS.NYU.EDU [128.122.49.97]) by pigeon.gentoo.org (Postfix) with ESMTP id A7EC7E0504 for ; Sat, 29 Sep 2012 17:28:17 +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 q8THSGh3022626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 29 Sep 2012 13:28:17 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id A5B4A700FA; Sat, 29 Sep 2012 13:27:42 -0400 (EDT) From: Allan Gottlieb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] USERDIR problem with apache on new install References: <5067224B.6010208@hadt.biz> Date: Sat, 29 Sep 2012 13:27:42 -0400 In-Reply-To: <5067224B.6010208@hadt.biz> (Michael Hampicke's message of "Sat, 29 Sep 2012 18:31:07 +0200") 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: 6ae944d6-9373-43b1-beba-a23804ff772b X-Archives-Hash: 6c2e8b54b28fdbff11562345fbee993e On Sat, Sep 29 2012, Michael Hampicke wrote: > Am 29.09.2012 17:08, schrieb Allan Gottlieb: >> 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. >> > > I am sure your user has access to the files - thus allowing you to > browse them locally (file:///) - but does apache (more precisely the > systems user 'apache') have access to this files? > > Have you tried this: > > # sudu -u apache cat /home/gottlieb/public_html/index.html I just did and the file appears on the screen. Also I checked the permissions of / /home /home/gottlieb /home/gottlieb and /home/gottlieb/public_html newlap local # ls -ld / /home /home/gottlieb drwxr-xr-x 23 root root 4096 Sep 27 23:47 / drwxr-xr-x 2 root root 4096 Sep 24 13:58 /home lrwxrwxrwx 1 root root 21 Sep 24 13:58 /home/gottlieb -> /local/allan/gottlieb newlap local # ls -ld /local/allan/gottlieb /local/allan/gottlieb/public_html/ drwxr-xr-x 41 gottlieb gottlieb 4096 Sep 29 12:42 /local/allan/gottlieb drwxr-xr-x 23 gottlieb gottlieb 4096 Sep 24 14:29 /local/allan/gottlieb/public_html/ newlap local # I'm still looking. Let me know if you think of something else. thanks, allan