Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-29-2004, 09:33 AM
|
#1
|
LQ Newbie
Registered: Jun 2004
Distribution: redhat
Posts: 6
Rep:
|
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'
|
|
|
06-30-2004, 07:43 AM
|
#2
|
LQ Newbie
Registered: Jun 2004
Distribution: redhat
Posts: 6
Original Poster
Rep:
|
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:
|
|
|
06-30-2004, 09:32 AM
|
#3
|
LQ Newbie
Registered: Jun 2004
Distribution: redhat
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|