Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 01:18:30 -0500
From:      "Tony Johnson" <gjohnson@gs.verio.net>
To:        "Daniel Bryant" <daniel@connectglobal.com>, <freebsd-questions@freebsd.org>
Subject:   RE: problems jailing with proftpd
Message-ID:  <FOENIGAJAKGPLNGHHADIGEJICOAA.gjohnson@gs.verio.net>
In-Reply-To: <006b01c0212e$dbd73420$e38e22cb@funkmaster>

next in thread | previous in thread | raw e-mail | index | archive | help
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D523050806-18092000><FONT face=3DArial color=3D#0000ff =
size=3D2>Check=20
proftpd.conf and see if there are any typos...&nbsp; Take the =
basic_config in=20
proftpd and check this with yur current config.</FONT></SPAN></DIV>
<DIV><SPAN class=3D523050806-18092000><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV>connectglobal.com (203.34.142.227[203.34.142.227]) - attempted bind =
to=20
203.34.142.70, port 0<BR></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  owner-freebsd-questions@FreeBSD.ORG=20
  [mailto:owner-freebsd-questions@FreeBSD.ORG]<B>On Behalf Of </B>Daniel =

  Bryant<BR><B>Sent:</B> Monday, September 18, 2000 12:11 =
AM<BR><B>To:</B>=20
  freebsd-questions@freebsd.org<BR><B>Subject:</B> problems jailing with =

  proftpd<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Heyas.. this is my first post to this =
list... so=20
  i 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>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I'm having a problem =
with&nbsp;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>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>
  <DIV><FONT face=3DArial size=3D2>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&nbsp;funky things.. that all =
works=20
  fine.. </FONT><FONT face=3DArial size=3D2>for both, mysql =
authenticated users and=20
  system-level users...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT></FONT>&nbsp;</DIV></DIV>
  <DIV><FONT face=3DArial size=3D2>As soon as i add the "DefaultRoot ~" =
directive,=20
  and then i ftp in <FONT face=3DArial size=3D2>with the&nbsp;default =
freebsd ftp=20
  client, heres what happens...</FONT>=20
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>________________________________________________________________=
__</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>[root@connectglobal blast_area]# ftp=20
  localhost<BR>Connected to localhost.connectglobal.com.<BR>220=20
  connectglobal.com FTP server ready.<BR>Name (localhost:daniel): =
dev2<BR>331=20
  Password required for dev2.<BR>Password:<BR>230 User dev2 logged =
in.<BR>Remote=20
  system type is UNIX.<BR>Using binary mode to transfer =
files.<BR>ftp&gt;=20
  pwd<BR>257 "/" is current directory.<BR>ftp&gt; cd htdocs<BR>250 CWD =
command=20
  successful.<BR>ftp&gt; pwd<BR>257 "/htdocs" is current =
directory.<BR>ftp&gt;=20
  cd images<BR>250 CWD command successful.<BR>ftp&gt; pwd<BR>257=20
  "/htdocs/images" is current directory.<BR>ftp&gt; ls<BR>421 Service =
not=20
  available, remote server has closed connection.<BR>Passive mode=20
  refused.<BR>ftp&gt; </FONT></DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>________________________________________________________________=
______</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>and this is what appears in the =
proftpd=20
  log:</FONT></DIV>
  <DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>________________________________________________________________=
______</FONT></DIV>
  <DIV>&nbsp;</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]) -=20
  received: PWD<BR>connectglobal.com (203.34.142.227[203.34.142.227]) -=20
  received: SYST<BR>connectglobal.com (203.34.142.227[203.34.142.227]) - =

  received: PASV<BR>connectglobal.com (203.34.142.227[203.34.142.227]) - =

  attempted bind to 203.34.142.70, port 0<BR>connectglobal.com=20
  (203.34.142.227[203.34.142.227]) - bind() failed in =
inet_create_connection():=20
  Invalid argument<BR>connectglobal.com (203.34.142.227[203.34.142.227]) =
- Check=20
  the ServerType directive to ensure you are configured =
correctly.</FONT></DIV>
  <DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>________________________________________________________________=
______</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</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>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>any ideas would be great...</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>thanks..</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>CLouD.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV></DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000D_01C0210E.5AE54ED0--



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?FOENIGAJAKGPLNGHHADIGEJICOAA.gjohnson>