You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andreas Hasenack <an...@conectiva.com.br> on 2002/04/09 20:36:17 UTC

access denied in ~user

I have:
/home/user: drwx-----x   51 user  www
/home/user/public_html: drwxrwxr-x    3 user  user
/home/user/public_html/index.html: -rw-rw-r--    1 user  user

Apache is running as www/www. I get access denied when accessing
http://localhost/~user/

BUT, if I change /home/user to 710:
drwx--x---   51 user  www

Then http://localhost/~user/ works!

Why isn't the "other" permission (701) working? Just to test, if I su
to www (after giving www a valid shell, of course) I can cd into
/home/user/public_html and list index.html and read it.

This under apache 2.0.35 and linux.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: access denied in ~user

Posted by Andrew Hawkes <ah...@unicon.net>.
Because under 701 permissions, anyone from group 'www' is explicitly
denied access (no read, no write, no execute).

This won't work:    /home/user: drwx-----x   51 user  www
This will:          /home/user: drwx-----x   51 user  blah

-Andy

On Tue, 9 Apr 2002 15:36:17 -0300
Andreas Hasenack <an...@conectiva.com.br> wrote:

> I have:
> /home/user: drwx-----x   51 user  www
> /home/user/public_html: drwxrwxr-x    3 user  user
> /home/user/public_html/index.html: -rw-rw-r--    1 user  user
> 
> Apache is running as www/www. I get access denied when accessing
> http://localhost/~user/
> 
> BUT, if I change /home/user to 710:
> drwx--x---   51 user  www
> 
> Then http://localhost/~user/ works!
> 
> Why isn't the "other" permission (701) working? Just to test, if I su
> to www (after giving www a valid shell, of course) I can cd into
> /home/user/public_html and list index.html and read it.
> 
> This under apache 2.0.35 and linux.
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org