[KLUG Members] Chroot FTP server

Adam Bultman members@kalamazoolinux.org
Mon, 19 May 2003 13:17:44 -0400 (EDT)


I've checked the site, and part of the internet, but haven't yet found an 
exhaustive CHROOT ftp server howto.  I've followed one for proftpd, and 
here's what I've got:

Proftpd 1.2.8 (most recent version)
Slackware 9

I'm trying to get FTP jailed completely.  While I trust proftpd's built 
in jailing feature, I'm a bit worried that someone WILL break out of the 
jail, and be able to run around my server. That's a no-no. So I'm trying 
to make a jail, and then from inside that jail, run proftpd and such. So 
even if they DO break out, they'll still be within the confines of the 
jail.  But I'm having difficulties getting things working.  I've managed 
to get it to run inside my jail (as root, unfortuantely, but I need to run 
it on a 'standard' port) but it won't authenticate users (and it looks for 
users in /jail/etc/passwd, I believe).

Name (192.168.0.39:adamb): adamb
331 Password required for adamb.
Password:
530 Login incorrect.
Login failed.

My password should be fine...

So I could use a bit of help from someone who has set up a jailed 
environment for FTP and had everything work handy-dandy.  Off list, on 
list, links, whatever.  I'll take anything I can get.  I'm new to chroot 
ftp, so yeah.

Oh, and one more question.  Inside my jail: I get this: 
I have no name!@newserver:/#

I have NO clue how to make it know my name. If I do it as a user, I get 
the same thing..


Adam
 -- 
adamb@glaven.org