Date: Mon, 18 Sep 2000 15:11:09 +1000 From: "Daniel Bryant" <daniel@connectglobal.com> To: <freebsd-questions@freebsd.org> Subject: problems jailing with proftpd Message-ID: <006b01c0212e$dbd73420$e38e22cb@funkmaster>
next in thread | raw e-mail | index | archive | help
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Heyas.. this is my first post to this = list... so i=20 just thought i'd say hi-ho... :-)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I'm AKA CLouD on EFnet...</FONT></DIV> <DIV><FONT face=3DArial size=3D2>anyway...</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I'm having a problem with ProFTPD = maybe=20 someone can shed some light on or give suggestoins or = whatever...</FONT></DIV> <DIV><FONT face=3DArial size=3D2>anything would be = appreciated..</FONT></DIV> <DIV><FONT face=3DArial size=3D2>im running thge latest CVS version of = proftpd=20 1.2-orc2 WITH mod_mysql/mod_sqlpw and FreeBSD4.0-stable</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>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.. = </FONT><FONT=20 face=3DArial size=3D2>for both, mysql authenticated users and = system-level=20 users...</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </FONT></DIV></DIV> <DIV><FONT face=3DArial size=3D2>As soon as i add the "DefaultRoot ~" = directive, and=20 then i ftp in <FONT face=3DArial size=3D2>with the default freebsd = ftp client,=20 heres what happens...</FONT> <DIV> </DIV> <DIV><FONT face=3DArial=20 size=3D2>________________________________________________________________= __</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>[root@connectglobal blast_area]# ftp=20 localhost<BR>Connected to localhost.connectglobal.com.<BR>220 = connectglobal.com=20 FTP server ready.<BR>Name (localhost:daniel): dev2<BR>331 Password = required for=20 dev2.<BR>Password:<BR>230 User dev2 logged in.<BR>Remote system type is=20 UNIX.<BR>Using binary mode to transfer files.<BR>ftp> pwd<BR>257 "/" = is=20 current directory.<BR>ftp> cd htdocs<BR>250 CWD command=20 successful.<BR>ftp> pwd<BR>257 "/htdocs" is current = directory.<BR>ftp> cd=20 images<BR>250 CWD command successful.<BR>ftp> pwd<BR>257 = "/htdocs/images" is=20 current directory.<BR>ftp> ls<BR>421 Service not available, remote = server has=20 closed connection.<BR>Passive mode refused.<BR>ftp> </FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2>________________________________________________________________= ______</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>and this is what appears in the proftpd = log:</FONT></DIV> <DIV> <DIV><FONT face=3DArial=20 size=3D2>________________________________________________________________= ______</FONT></DIV> <DIV> </DIV><FONT face=3DArial size=3D2>connectglobal.com=20 (203.34.142.227[203.34.142.227]) - USER daniel: Login=20 successful.<BR>connectglobal.com (203.34.142.227[203.34.142.227]) -=20 _get_default_root: /usr/home/daniel<BR>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'<BR>connectglobal.com (203.34.142.227[203.34.142.227]) -=20 Environment successfully jail()ed.<BR>connectglobal.com=20 (203.34.142.227[203.34.142.227]) - mysql: close [0] for=20 mod_sqlpw/2.0<BR>connectglobal.com (203.34.142.227[203.34.142.227]) - = received:=20 PWD<BR>connectglobal.com (203.34.142.227[203.34.142.227]) - received:=20 SYST<BR>connectglobal.com (203.34.142.227[203.34.142.227]) - received:=20 PASV<BR>connectglobal.com (203.34.142.227[203.34.142.227]) - attempted = bind to=20 203.34.142.70, port 0<BR>connectglobal.com = (203.34.142.227[203.34.142.227]) -=20 bind() failed in inet_create_connection(): Invalid = argument<BR>connectglobal.com=20 (203.34.142.227[203.34.142.227]) - Check the ServerType directive to = ensure you=20 are configured correctly.</FONT></DIV> <DIV> <DIV><FONT face=3DArial=20 size=3D2>________________________________________________________________= ______</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Ive tried running the server as various = users,=20 including root.. and also from inetd, and as standalone.. </FONT></DIV> <DIV><FONT face=3DArial size=3D2>all give the same result.</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV>any ideas would be great...</DIV> <DIV> </DIV> <DIV>thanks..</DIV> <DIV> </DIV> <DIV>CLouD.</DIV> <DIV> </DIV> <DIV> </DIV></DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_0068_01C02182.ACEC3440-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006b01c0212e$dbd73420$e38e22cb>