From: Allan Gottlieb <gottlieb@nyu.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] USERDIR problem with apache on new install
Date: Sat, 29 Sep 2012 13:27:42 -0400 [thread overview]
Message-ID: <yu9vcewrb75.fsf@nyu.edu> (raw)
In-Reply-To: <5067224B.6010208@hadt.biz> (Michael Hampicke's message of "Sat, 29 Sep 2012 18:31:07 +0200")
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
next prev parent reply other threads:[~2012-09-29 17:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-29 15:08 [gentoo-user] USERDIR problem with apache on new install Allan Gottlieb
2012-09-29 16:31 ` Michael Hampicke
2012-09-29 17:27 ` Allan Gottlieb [this message]
2012-09-29 17:52 ` Neil Bothwick
2012-09-29 18:14 ` Michael Hampicke
2012-09-29 18:57 ` Allan Gottlieb
2012-09-29 21:59 ` [gentoo-user] USERDIR problem with apache on new install (SOLVED) Allan Gottlieb
2012-09-29 22:14 ` Michael Hampicke
2012-09-30 1:39 ` Allan Gottlieb
2012-09-30 6:42 ` Andrea Conti
2012-09-30 16:36 ` Allan Gottlieb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yu9vcewrb75.fsf@nyu.edu \
--to=gottlieb@nyu.edu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox