|
From: | Brian Platt |
Subject: | Re: [Jailkit-users] jailing users to home with apache |
Date: | Fri, 22 Jun 2018 12:36:29 +0100 |
the apache process needs read access to the directories upstream to the home directories of the users.
so assume your apache process runs with user www-data and group www-data
then
chgrp www-data /opt/jail/home/*
chmod 0750 /opt/jail/home/*
Olivier
On 21-06-18 16:34, Brian Platt wrote:
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 dochmod 0700 /opt/jail/home/*
then users are jailed to their home dir and if they try to get into another they get Permission deniedhowever when browsing to their website i.ehttp://IP ADDRESS/~userI getForbidden
You don't have permission to access /~user/ on this server.
apache log
/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 dochmod 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?
_______________________________________________ Jailkit-users mailing list address@hidden https://lists.nongnu.org/ mailman/listinfo/jailkit-users
-- Bluefish website http://bluefish.openoffice.nl/ Blog http://oli4444.wordpress.com/
_______________________________________________
Jailkit-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/jailkit-users
[Prev in Thread] | Current Thread | [Next in Thread] |