[Top][All Lists]

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

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

From: Olivier Sessink
Subject: Re: [Jailkit-users] jailing users to home with apache
Date: Thu, 21 Jun 2018 19:59:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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


chgrp www-data /opt/jail/home/*
chmod 0750 /opt/jail/home/*


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


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

Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/

reply via email to

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