Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-13-2006, 07:22 PM
|
#1
|
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Rep:
|
virtual users and virtual host need to stay at /home
lo there,
i have a quick question about setting up permissions on some home folders.
i have apache running with virtual hosts.
under /var/www/ i have several folders that some of my friends websites are located at.
so to allow them to modify their sites remotely, i set them up as users with their home directory being /var/www/whatever_their_site_folder_is.
this way they can use an ssh client and transfer files to their folder and apache will serve them to the web.
so far so good. But is there a way that i can keep them from also exploring around on the rest of my computer ? i want them not to be able to move up the directory tree any more than just their home ( or web ) folder.
i suppose i could alter their user permissions so they could not look at other stuff, but i dont know how. Is this where i would use a jail ?
thanks for any suggestions
|
|
|
|
01-14-2006, 12:16 PM
|
#2
|
|
Member
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620
Rep:
|
The best way to do this is to enable home directories and use ftp.
1. Enable home directories in Apache (/home/user/public_html)
2. Point virtual host directory parameters to their public_html
3. Enable an FTP server which will restrict access to their /home/user directory only.
4. *If* you still choose to give them SSH (or any shell access). Learn to use some sort of 'jail shell' which will appear as if their is nothing else on the system but their home directory.
|
|
|
|
01-14-2006, 01:14 PM
|
#3
|
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Original Poster
Rep:
|
jail shell, looks like what i need here, thanks much
|
|
|
|
01-14-2006, 01:36 PM
|
#4
|
|
Member
Registered: Jan 2006
Posts: 76
Rep:
|
search around for the chroot command.. that should help point you in the right direction too
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|