logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: correct userdir permissions in jailed enviroment
Author
stretch



Joined: 24 Aug 2016
Posts: 1
Location: UK

PostPosted: Wed 24 Aug '16 17:16    Post subject: correct userdir permissions in jailed enviroment Reply with quote

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

PostPosted: Mon 29 Aug '16 13:48    Post subject: Reply with quote

0755 should be correct for directories and 0644 for files.
Back to top


Reply to topic   Topic: correct userdir permissions in jailed enviroment View previous topic :: View next topic
Post new topic   Forum Index -> Apache