LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-27-2011, 06:28 PM   #1
RonD
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
setting up chroot


It's been awhile since I've implemented the use of "chroot", and then that was on HP-UX many years ago. Does anyone have any documents, or can you point me to a good blog or website that will guide me through setting up a user account that's "chroot"ed?

Thanks,
 
Old 06-27-2011, 08:56 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I haven't done any recently either but it depends on how they're coming in ... ftp, ssh, something else?
 
Old 06-27-2011, 10:42 PM   #3
nightg0at
LQ Newbie
 
Registered: May 2011
Distribution: Archlinux, Debian Sid
Posts: 4

Rep: Reputation: Disabled
I found Jailkit http://olivier.sessink.nl/jailkit/ to be quite nice.
I wrote a blog a few months ago on setting up a user to run an app using jailkit. The app I used was rtorrent, but you could adjust it to fit whatever.
http://nightg0at.blogspot.com/2011_03_01_archive.html
What I like about chroot jails is that not only do you get the security of a jail (assuming its set up properly) but you can also write iptable rules specific to that one user account.
 
Old 06-28-2011, 07:44 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
See post four of this thread: http://www.linuxquestions.org/questi...erences-45261/
Lots of information on setting up and using chroot.
 
Old 06-28-2011, 08:06 AM   #5
RonD
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you all for the quick replies.

kbp - the intent is to allow one of our vendors to ftp into the server to deliver files and I don't want to open the rest of the server up to them should one of their employees decide they want to "investigate".
 
Old 06-28-2011, 07:27 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
FTP is pretty easy to chroot, I'd say pretty much all products have built-in support for it - which server are you using ?
 
  


Reply



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
Help in setting up a Chroot jail in PCLOS2007 uncle-c Linux - General 1 12-10-2007 05:51 PM
setting up chroot in etch amd64 nutbag Debian 6 04-07-2007 09:32 AM
Setting up chroot with existing users qwerty Linux - Security 1 11-03-2005 04:29 PM
Setting up a chroot jail jayanth Linux - Security 1 05-06-2005 12:31 AM
setting display after chroot darthczyz Linux - Newbie 2 04-05-2004 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:11 PM.

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