From owner-freebsd-questions Sun Sep 17 23:18:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dfw-smtpout3.email.verio.net (dfw-smtpout3.email.verio.net [129.250.36.43]) by hub.freebsd.org (Postfix) with ESMTP id 9D10A37B423 for ; Sun, 17 Sep 2000 23:18:43 -0700 (PDT) Received: from [129.250.38.61] (helo=dfw-mmp1.email.verio.net) by dfw-smtpout3.email.verio.net with esmtp (Exim 3.12 #7) id 13auGI-0001HD-00; Mon, 18 Sep 2000 06:18:42 +0000 Received: from [204.1.90.43] (helo=power) by dfw-mmp1.email.verio.net with smtp (Exim 3.15 #4) id 13auGH-0000Ku-00; Mon, 18 Sep 2000 06:18:41 +0000 From: "Tony Johnson" To: "Daniel Bryant" , Subject: RE: problems jailing with proftpd Date: Mon, 18 Sep 2000 01:18:30 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000D_01C0210E.5AE54ED0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <006b01c0212e$dbd73420$e38e22cb@funkmaster> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C0210E.5AE54ED0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Check proftpd.conf and see if there are any typos... Take the basic_config in proftpd and check this with yur current config. connectglobal.com (203.34.142.227[203.34.142.227]) - attempted bind to 203.34.142.70, port 0 -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Daniel Bryant Sent: Monday, September 18, 2000 12:11 AM To: freebsd-questions@freebsd.org Subject: problems jailing with proftpd 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... 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> ______________________________________________________________________ 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.. all give the same result. any ideas would be great... thanks.. CLouD. ------=_NextPart_000_000D_01C0210E.5AE54ED0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Check=20 proftpd.conf and see if there are any typos...  Take the = basic_config in=20 proftpd and check this with yur current config.
 
connectglobal.com (203.34.142.227[203.34.142.227]) - attempted bind = to=20 203.34.142.70, port 0
-----Original Message-----
From:=20 owner-freebsd-questions@FreeBSD.ORG=20 [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Daniel = Bryant
Sent: Monday, September 18, 2000 12:11 = AM
To:=20 freebsd-questions@freebsd.org
Subject: problems jailing with = proftpd

Heyas.. this is my first post to this = list... so=20 i 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=20 automatically dumped into their home directory... and everything seems = ok..=20 users can ls, cwd, pwd, and all the other funky things.. that all = works=20 fine.. for both, mysql = authenticated users and=20 system-level users...
 
As soon as i add the "DefaultRoot ~" = directive,=20 and then i ftp in with the default = freebsd ftp=20 client, heres what happens...=20
 
________________________________________________________________= __
 
[root@connectglobal blast_area]# ftp=20 localhost
Connected to localhost.connectglobal.com.
220=20 connectglobal.com FTP server ready.
Name (localhost:daniel): = dev2
331=20 Password required for dev2.
Password:
230 User dev2 logged = in.
Remote=20 system type is UNIX.
Using binary mode to transfer = files.
ftp>=20 pwd
257 "/" is current directory.
ftp> cd htdocs
250 CWD = command=20 successful.
ftp> pwd
257 "/htdocs" is current = directory.
ftp>=20 cd images
250 CWD command successful.
ftp> pwd
257=20 "/htdocs/images" is current directory.
ftp> ls
421 Service = not=20 available, remote server has closed connection.
Passive mode=20 refused.
ftp>
________________________________________________________________= ______
 
 
and this is what appears in the = proftpd=20 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]) -=20 received: PWD
connectglobal.com (203.34.142.227[203.34.142.227]) -=20 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=20 (203.34.142.227[203.34.142.227]) - bind() failed in = inet_create_connection():=20 Invalid argument
connectglobal.com (203.34.142.227[203.34.142.227]) = - Check=20 the ServerType directive to ensure you 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_000D_01C0210E.5AE54ED0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message