LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-29-2004, 09:33 AM   #1
snowmedia
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat
Posts: 6

Rep: Reputation: 0
Question chroot jail for the vsftpd daemon -not internal to program


Hello,

New and somewhat challenged: The issue stands before me that my overseer wants to place the vsftpd daemon into a chroot jail. That is to say, they do not trust the internal chroot process defined by vsftpd to keep attackers from accessing the Linux core.

So, has anyone tried to setup vsftpd in its own chroot jail as well as the internal chroot jails vsftpd does as part of the vsftpd.conf file?

My impression is that it is not possible. However, I am open to ideas. I have place vsftpd in a mock jail, but it fails with an error

500 ooops ...can locate ftp_username:ftp. You receive this error when you try to ftp to the server.

If anyone feels up to the challenge or has ideas please let me know.

Snowmedia 'a.k.a, Chris'
 
Old 06-30-2004, 07:43 AM   #2
snowmedia
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat
Posts: 6

Original Poster
Rep: Reputation: 0
Smile

Well, I answered my own question.

The answer: You can chroot the vsftpd daemon, although it take a little tweeking.

For those who are interested, I will post the configuration of the chroot jail later today:
 
Old 06-30-2004, 09:32 AM   #3
snowmedia
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat
Posts: 6

Original Poster
Rep: Reputation: 0
Here is the basic config of the jail:

/home/jail
-bin (contains: Bash, ls, strace-for trouble shooting)
-dev (contains: null and zero)
-etc (contains:Group, Localtime, nsswitch.conf,passwd,vsftpd.conf,vsftpd.banned_emails,
( shells)
-lib (contains: ld-linux.so.2,libcrypt.so.1,libc.so.6,libdl.so.2,libnss_files.so.2,libtermcap.so.2)
-sbin (contains:nologin)
-tmp (for testing)
-user
-local
-sbin(contains: vsftpd)
-share
-empty
-var
-ftp
-pub
-run (for testing, I don't believe it is necessary)
-log (contains:vsftpd.log) (potential concern here)

Can setup for anonymous only, anonymous and local, and virtual. So far, vsftpd was able to chroot local users into own home directory placed under ftp.
I hope this helps people who have a question on if vsftpd daemon can be placed in to a chroot jail. I am sure there are a few more tweaks to make it hundered percent stable, but it is a start.
 
  


Reply


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
Chroot jail Gimpy Linux - Software 10 05-07-2010 01:30 PM
Chroot jail pachanga Linux - General 12 09-26-2008 05:15 AM
vsftpd, combining chroot jail & links? Whz Linux - Software 0 07-25-2003 04:31 PM
Help with chroot jail - vsFTPd r042wal Linux - Software 1 06-05-2003 04:21 PM
chroot jail simon Linux - Security 3 08-05-2001 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration