LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-06-2010, 02:28 AM   #1
naquad
Member
 
Registered: Feb 2007
Posts: 34

Rep: Reputation: 15
User specific chroot?


Hi.

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, 08:38 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
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
 
  


Reply

Tags
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 08:28 AM
Blocking mail to specific domain from specific user orko Linux - Server 0 03-26-2009 03: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 06: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 11:30 AM
limit specific proces to a specific user Tux-Slack Linux - Software 3 02-24-2007 12:38 AM


All times are GMT -5. The time now is 03:43 PM.

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