Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-06-2010, 01:28 AM   #1
Registered: Feb 2007
Posts: 34

Rep: Reputation: 15
User specific chroot?


I've got 50 users accessing linux box through SSH, I want to put them into chroot environments so all they could see is basic linux system (usual chroot), but some folders and files must be mapped to real filesystem (e.g. /home/user/public_html, /var/log/httpd/error_log, etc). Those folders and files in chroot must be seen on the same places as on the real filesystems. Usual chroot doesn't fit because I'll have to make 50 copies of chroot environment or allow users to see each other in some way (/etc/passwd, /etc/home, ...) and thats what I'm trying to avoid.

Any ideas how to do this?
Old 08-06-2010, 07:38 AM   #2
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
for /etc/passwd you might need to put a unique copy for each user, for home you can just mount bind in their real home directory without bringing in all of home


chroot, jail

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRNG Not Seeded - Works with 1 user but not a /chroot user macking Linux - Server 2 06-29-2010 07:28 AM
Blocking mail to specific domain from specific user orko Linux - Server 0 03-26-2009 02:18 PM
How to force specific domain or user specific emails to proces in sendmail 8.13.5 FC5 peanutsa Linux - Newbie 1 03-22-2009 05:33 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
limit specific proces to a specific user Tux-Slack Linux - Software 3 02-23-2007 11:38 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration