LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2007, 04:48 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Rep: Reputation: 30
Help in setting up a Chroot jail in PCLOS2007


I have PCLOS2007 running up and fine, however, as SSH / SFTP were included in the installation package I could not compile them myself ( with the -chroot option) and am thus left with a non-chroot jailed environment when I login from a non-root account. I would like to get the jail set in place and have read the much recommened :

http://www.fuschlberger.net/programs...p-chroot-jail/

I am not sure if this would be viable in my case ? I really want to avoid using pre-written scripts as this defeats the object of the exercise i.e learn how to construct chroot jails via command line.
What would be the best way of going about this ? Any generous advice would be most appreciated.

Thanks again !

Uncle.

Last edited by uncle-c; 12-10-2007 at 05:53 AM.
 
Old 12-10-2007, 05:51 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Search LQ for threads about chrooting or check out the LQ FAQ: Security references, post #4 "Chroot, chrooting, jailing, etc" and read a few. Select one that looks basic enough and try building a chroot just for testing how to chroot a local user. The steps you take and the errors you'll encounter will help you understand what is necessary (dependencies, configuration) for a chroot to work. *Then* try to chroot SSH. Alternatively you could use any prefab jail building script but then you'll have to a) trust the writer, b) read shell script or Perl to understand what gets moved where and c) there'll be no explanation.
 
  


Reply

Tags
chroot, jail



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot jail Gimpy Linux - Software 10 05-07-2010 01:30 PM
Chroot jail pachanga Linux - General 12 09-26-2008 05:15 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 02:20 AM
chroot jail etc. f1uke Linux - Security 5 08-24-2005 03:12 AM
Setting up a chroot jail jayanth Linux - Security 1 05-06-2005 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration