From owner-freebsd-questions Sun Sep 17 22:11:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from connectglobal.com (connectglobal.com [203.34.142.70]) by hub.freebsd.org (Postfix) with SMTP id 8DF8637B422 for ; Sun, 17 Sep 2000 22:11:10 -0700 (PDT) Received: (qmail 46393 invoked from network); 18 Sep 2000 05:26:36 -0000 Received: from unknown (HELO funkmaster) (203.34.142.227) by connectglobal.com with SMTP; 18 Sep 2000 05:26:36 -0000 Message-ID: <006b01c0212e$dbd73420$e38e22cb@funkmaster> From: "Daniel Bryant" To: Subject: problems jailing with proftpd Date: Mon, 18 Sep 2000 15:11:09 +1000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0068_01C02182.ACEC3440" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0068_01C02182.ACEC3440 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Heyas.. this is my first post to this list... so i just thought i'd say = hi-ho... :-) I'm AKA CLouD on EFnet... anyway... I'm having a problem with ProFTPD maybe someone can shed some light on = or give suggestoins or whatever... anything would be appreciated.. im running thge latest CVS version of proftpd 1.2-orc2 WITH = mod_mysql/mod_sqlpw and FreeBSD4.0-stable Upon ftping to the server, users are automatically dumped into their = home directory... and everything seems ok.. users can ls, cwd, pwd, and = all the other funky things.. that all works fine.. for both, mysql = authenticated users and system-level users... =20 As soon as i add the "DefaultRoot ~" directive, and then i ftp in with = the default freebsd ftp client, heres what happens... __________________________________________________________________ [root@connectglobal blast_area]# ftp localhost Connected to localhost.connectglobal.com. 220 connectglobal.com FTP server ready. Name (localhost:daniel): dev2 331 Password required for dev2. Password: 230 User dev2 logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/" is current directory. ftp> cd htdocs 250 CWD command successful. ftp> pwd 257 "/htdocs" is current directory. ftp> cd images 250 CWD command successful. ftp> pwd 257 "/htdocs/images" is current directory. ftp> ls 421 Service not available, remote server has closed connection. Passive mode refused. ftp>=20 ______________________________________________________________________ and this is what appears in the proftpd log: ______________________________________________________________________ connectglobal.com (203.34.142.227[203.34.142.227]) - USER daniel: Login = successful. connectglobal.com (203.34.142.227[203.34.142.227]) - _get_default_root: = /usr/home/daniel connectglobal.com (203.34.142.227[203.34.142.227]) - Preparing to jail() = the environment(version - '0', path - '/usr/home/daniel', hostname - = 'connectglobal.com', ip_number - '203.34.142.70' connectglobal.com (203.34.142.227[203.34.142.227]) - Environment = successfully jail()ed. connectglobal.com (203.34.142.227[203.34.142.227]) - mysql: close [0] = for mod_sqlpw/2.0 connectglobal.com (203.34.142.227[203.34.142.227]) - received: PWD connectglobal.com (203.34.142.227[203.34.142.227]) - received: SYST connectglobal.com (203.34.142.227[203.34.142.227]) - received: PASV connectglobal.com (203.34.142.227[203.34.142.227]) - attempted bind to = 203.34.142.70, port 0 connectglobal.com (203.34.142.227[203.34.142.227]) - bind() failed in = inet_create_connection(): Invalid argument connectglobal.com (203.34.142.227[203.34.142.227]) - Check the = ServerType directive to ensure you are configured correctly. ______________________________________________________________________ Ive tried running the server as various users, including root.. and also = from inetd, and as standalone..=20 all give the same result. any ideas would be great... thanks.. CLouD. ------=_NextPart_000_0068_01C02182.ACEC3440 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Heyas.. this is my first post to this = list... so i=20 just thought i'd say hi-ho... :-)
I'm AKA CLouD on EFnet...
anyway...
 
I'm having a problem with ProFTPD = maybe=20 someone can shed some light on or give suggestoins or = whatever...
anything would be = appreciated..
im running thge latest CVS version of = proftpd=20 1.2-orc2 WITH mod_mysql/mod_sqlpw and FreeBSD4.0-stable
 
Upon ftping to the server, users are = automatically=20 dumped into their home directory... and everything seems ok.. users can = ls, cwd,=20 pwd, and all the other funky things.. that all works fine.. = for both, mysql authenticated users and = system-level=20 users...
 
As soon as i add the "DefaultRoot ~" = directive, and=20 then i ftp in with the default freebsd = ftp client,=20 heres what happens...
 
________________________________________________________________= __
 
[root@connectglobal blast_area]# ftp=20 localhost
Connected to localhost.connectglobal.com.
220 = connectglobal.com=20 FTP server ready.
Name (localhost:daniel): dev2
331 Password = required for=20 dev2.
Password:
230 User dev2 logged in.
Remote system type is=20 UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" = is=20 current directory.
ftp> cd htdocs
250 CWD command=20 successful.
ftp> pwd
257 "/htdocs" is current = directory.
ftp> cd=20 images
250 CWD command successful.
ftp> pwd
257 = "/htdocs/images" is=20 current directory.
ftp> ls
421 Service not available, remote = server has=20 closed connection.
Passive mode refused.
ftp>
________________________________________________________________= ______
 
 
and this is what appears in the proftpd = log:
________________________________________________________________= ______
 
connectglobal.com=20 (203.34.142.227[203.34.142.227]) - USER daniel: Login=20 successful.
connectglobal.com (203.34.142.227[203.34.142.227]) -=20 _get_default_root: /usr/home/daniel
connectglobal.com=20 (203.34.142.227[203.34.142.227]) - Preparing to jail() the = environment(version -=20 '0', path - '/usr/home/daniel', hostname - 'connectglobal.com', = ip_number -=20 '203.34.142.70'
connectglobal.com (203.34.142.227[203.34.142.227]) -=20 Environment successfully jail()ed.
connectglobal.com=20 (203.34.142.227[203.34.142.227]) - mysql: close [0] for=20 mod_sqlpw/2.0
connectglobal.com (203.34.142.227[203.34.142.227]) - = received:=20 PWD
connectglobal.com (203.34.142.227[203.34.142.227]) - received:=20 SYST
connectglobal.com (203.34.142.227[203.34.142.227]) - received:=20 PASV
connectglobal.com (203.34.142.227[203.34.142.227]) - attempted = bind to=20 203.34.142.70, port 0
connectglobal.com = (203.34.142.227[203.34.142.227]) -=20 bind() failed in inet_create_connection(): Invalid = argument
connectglobal.com=20 (203.34.142.227[203.34.142.227]) - Check the ServerType directive to = ensure you=20 are configured correctly.
________________________________________________________________= ______
 
 
Ive tried running the server as various = users,=20 including root.. and also from inetd, and as standalone..
all give the same result.
 
 
any ideas would be great...
 
thanks..
 
CLouD.
 
 
------=_NextPart_000_0068_01C02182.ACEC3440-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message