Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: correct userdir permissions in jailed enviroment |
|
Author |
|
stretch
Joined: 24 Aug 2016 Posts: 1 Location: UK
|
Posted: Wed 24 Aug '16 17:16 Post subject: correct userdir permissions in jailed enviroment |
|
|
I've setup a jailed environment and installed apache, users homes are
/opt/jail/users/username/public_html
When I attempt to jail a user to their home directory
chmod 0700 /opt/jail/home/*
and then browsing to their site
http://IP/~user
I get permission denied
however if I do
chmod 777 /opt/jail/home/*
it works as expected BUT my users are no longer jailed to their home directory.
What permissions can I set so user is still jailed but their public_html directory still viewable? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 29 Aug '16 13:48 Post subject: |
|
|
0755 should be correct for directories and 0644 for files. |
|
Back to top |
|
|
|
|
|
|