So I have users setup that they have public_html in their root directory to put web files in however i'm unable to make this AND jailing user to their home directory work i.e
If I do
chmod 0700 /opt/jail/home/*
then users are jailed to their home dir and if they try to get into another they get Permission denied
however when browsing to their website i.e
You don't have permission to access /~user/ on this server.
/opt/jail/home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/opt/jail/home/user/' is executable 9.htaccess exists)
if i do
chmod 0755 /opt/jail/home/*
then the page loads correctly
So what permissions do i need to use to jail users to home and make their page still viewable?