You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Allen Seelye <al...@gmail.com> on 2011/05/01 21:29:20 UTC

[users@httpd] userdirs inaccessible after upgrade

I upgraded from ubuntu 9.10 to 10.10. Now my userdirs are inaccessible. 

The access log reads:
---------------------------------------------------------------------
"GET /~user HTTP/1.1" 403 506 "-"
---------------------------------------------------------------------

The error log shows this error:
---------------------------------------------------------------------
(13)Permission denied: access to /~user denied
---------------------------------------------------------------------

I've tried chmoding to 711, 755 and 777, setting the group and/or owner to 
www-data and nothing works.

Nothing has changed in my file permissions, ownership or apache2.conf from 
before the upgrade so I don't understand what's going on here.

I've been messing with this for two days, found lots of people complaining of 
this issue but the only ones that were solved were done by setting folder 
permissions or ownership. I've tried all of those things.

I've done a a2dismod userdir - restart apache, then a2enmod userdir - restart 
apache. Still no good.

My userdir.conf:
---------------------------------------------------------------------
<IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root

        <Directory /home/*/public_html>
#                AllowOverride FileInfo AuthConfig Limit Indexes
                AllowOverride None
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
                        Order allow,deny
                        Allow from all
                </Limit>
                <LimitExcept GET POST OPTIONS>
                        Order deny,allow
                        Deny from all
                </LimitExcept>
        </Directory>
</IfModule>
---------------------------------------------------------------------

Apache2.conf is the default from install with no modifications.

My /etc/apache2/sites-enabled/000-default:
---------------------------------------------------------------------
<VirtualHost *:80>
        ServerAdmin alleninmt@gmail.com

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
---------------------------------------------------------------------

I even went so far as to completely remove apache2 and all config files, then 
reinstalling. Still no luck.

I'm completely stumped here. Any help is greatly appreciated.


-Allen



---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] userdirs inaccessible after upgrade

Posted by Allen <al...@gmail.com>.
Ah, I stand corrected.

namei -m showed this:

  drwxr-xr-x /
  drwxr-xr-x home
  drwxrwx--- user
  drwxr-xr-x public_html
  -rw-r--r-- index.html

I changed the permissions on my user folder to --x and was then able to 
access my userdir. I checked the permissions on the other users and 
they're all the same. Had to change them all. This must have been some 
kind of security change from 9.10 to 10.10 because the userdirs were 
working fine before I ran the upgrade.

Anyway, thanks Frank. This has been driving myself and three other 
people nuts since Friday night. :)





On 5/2/2011 7:55 AM, Frank Gingras wrote:
> On 02/05/2011 9:22 AM, Allen Seelye wrote:
>>> See http://wiki.apache.org/httpd/13PermissionDenied
>>>
>>> Frank
>>>
>> Thanks Franks, this is not a file permission problem though. I've set 
>> the
>> permissions for the index.html, and every folder up to it, wide open 
>> and I
>> still get a permission denied error.
>>
>> I did the namei command and this was the output:
>> --------------------------------------------------------------------------- 
>>
>> $ namei /home/user/public_html/index.html
>> f: /home/user/public_html/index.html
>>   d /
>>   d home
>>   d user
>>   d public_html
>>   - index.html
>> --------------------------------------------------------------------------- 
>>
>>
>> I'm not sure what this is telling me.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> Show namei -m instead.
>
> ---------------------------------------------------------------------
> 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
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] userdirs inaccessible after upgrade

Posted by Frank Gingras <fr...@gmail.com>.
On 02/05/2011 9:22 AM, Allen Seelye wrote:
>> See http://wiki.apache.org/httpd/13PermissionDenied
>>
>> Frank
>>
> Thanks Franks, this is not a file permission problem though. I've set the
> permissions for the index.html, and every folder up to it, wide open and I
> still get a permission denied error.
>
> I did the namei command and this was the output:
> ---------------------------------------------------------------------------
> $ namei /home/user/public_html/index.html
> f: /home/user/public_html/index.html
>   d /
>   d home
>   d user
>   d public_html
>   - index.html
> ---------------------------------------------------------------------------
>
> I'm not sure what this is telling me.
>
>
> ---------------------------------------------------------------------
> 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
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Show namei -m instead.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] userdirs inaccessible after upgrade

Posted by Allen Seelye <al...@gmail.com>.
> 
> See http://wiki.apache.org/httpd/13PermissionDenied
> 
> Frank
> 

Thanks Franks, this is not a file permission problem though. I've set the 
permissions for the index.html, and every folder up to it, wide open and I 
still get a permission denied error.

I did the namei command and this was the output:
---------------------------------------------------------------------------
$ namei /home/user/public_html/index.html
f: /home/user/public_html/index.html
 d /
 d home
 d user
 d public_html
 - index.html
---------------------------------------------------------------------------

I'm not sure what this is telling me.


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] userdirs inaccessible after upgrade

Posted by Francois Gingras <fr...@gmail.com>.
On Sun, May 1, 2011 at 4:32 PM, Yehuda Katz <ye...@ymkatz.net> wrote:
> On Sun, May 1, 2011 at 3:29 PM, Allen Seelye <al...@gmail.com> wrote:
>>
>> I upgraded from ubuntu 9.10 to 10.10. Now my userdirs are inaccessible.
>>
>> The access log reads:
>> ---------------------------------------------------------------------
>> "GET /~user HTTP/1.1" 403 506 "-"
>> ---------------------------------------------------------------------
>>
>> The error log shows this error:
>> ---------------------------------------------------------------------
>> (13)Permission denied: access to /~user denied
>> ---------------------------------------------------------------------
>
> There have been many reports of problems with this.
> Post 3 here may have something for you to start with.
> It can also be caused by home directory
> encryption: http://ubuntuforums.org/showthread.php?p=9868230.
> - Yehuda

See http://wiki.apache.org/httpd/13PermissionDenied

Frank

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] userdirs inaccessible after upgrade

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Sun, May 1, 2011 at 3:29 PM, Allen Seelye <al...@gmail.com> wrote:

> I upgraded from ubuntu 9.10 to 10.10. Now my userdirs are inaccessible.
>
> The access log reads:
> ---------------------------------------------------------------------
> "GET /~user HTTP/1.1" 403 506 "-"
> ---------------------------------------------------------------------
>
> The error log shows this error:
> ---------------------------------------------------------------------
> (13)Permission denied: access to /~user denied
> ---------------------------------------------------------------------
>

There have been many reports of problems with this.
Post 3 here <http://ubuntuforums.org/showthread.php?p=10751593#post10751593>may
have something for you to start with.
It can also be caused by home directory encryption:
http://ubuntuforums.org/showthread.php?p=9868230.

- Yehuda