Ubuntu

Apache2 userdir does not like encrypted home directories

Reported by Alexander Pas on 2010-05-25
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: apache2

I have installed apache2 on 10.04 with

sudo apt-get install apache2

I enabled userdir with

sudo a2enmod userdir

and restarted apache. I created a public_html directory in my HOME directory.

If I just go to http://localhost/ everything there works.

But I get a 403 Forbidden error when I navigate to http://localhost/~myuser/ or anything under it.

When i tested this on a machne without encrypted home directory it works without a problem.

I expected apache to be able to access my files when i'm logged in.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apache2 2.2.14-5ubuntu8
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Tue May 25 04:20:59 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Release i386 (20100429.4)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: apache2

Alexander Pas (alexanderpas) wrote :
Scott Moser (smoser) wrote :

I think you will need to add execute permission to your $HOME directory for other, so that apache can read it, and make sure that public_html has other readabilithy also.

Can you please try that?

Changed in apache2 (Ubuntu):
status: New → Incomplete
Alexander Pas (alexanderpas) wrote :

setting the permission of /home/user to 0755 'fixed' the issue.
having /home/user set to anything stricter, while /home/user/public_html was still set to 0755 made it not work again.

Scott Moser (smoser) wrote :

I'm marking this as 'Invalid' . It really is "working as designed". when you select Encrypted home, you're also selecting it to be private. The assumption is that if you are concerned about the readability of your data when the system is off, you would rather not have other users read the data while it is on (or some similar thought process).

If you want public_html to work, then 'chmod o+x $HOME'.

Changed in apache2 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers