jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] jailing users to home with apache


From: Brian Platt
Subject: Re: [Jailkit-users] jailing users to home with apache
Date: Fri, 22 Jun 2018 12:36:29 +0100

Many thanks Olivier that worked great.

On Thu, Jun 21, 2018 at 6:59 PM, Olivier Sessink <address@hidden> wrote:
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 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 
http://IP ADDRESS/~user
I get

Forbidden

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 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?


_______________________________________________
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]