Loading ...
Sorry, an error occurred while loading the content.

Re: FTP into the unSlung NLSU2

Expand Messages
  • ohagers
    Hi Tony, thanks for the tip. But it is still not working. Starting FTPD -D gives no errors, but after a ps -ef | grep ftpd* there are no processes running
    Message 1 of 9 , Mar 1, 2005
    • 0 Attachment
      Hi Tony, thanks for the tip. But it is still not working. Starting
      FTPD -D gives no errors, but after a ps -ef | grep ftpd* there are no
      processes running ftpd. Is there some kind of logoption, so I can
      check which error the ftpd program issues?

      --- In nslu2-linux@yahoogroups.com, tonymy01 <tony_h@b...> wrote:
      > If your SLUG is unslung /opt/libexec is equal to
      /share/hdd/conf/opt/libexec/ (as /opt is symlinked to /share/hdd/conf.
      If you did an "ls -l" in the root directory you would see this).
      >
      > I followed these steps with no probs (I wrote this wiki entry):
      > http://www.nslu2-linux.org/wiki/Puppy/PuppyCron
      > Regards
      > --
      > Tonymy01
      > --
      > http://tonyspage.abock.de
      >
      > ---- ohagers <ohagers@y...> wrote:
      > >
      > >
      > <html><body>
      > >
      >
      > >
      >
      > >
      >
      > >
      > <tt>
      > >
      > <BR>
      > >
      > I have my NLSU2 box up and running, but I cannot get FTP to work. I<BR>
      > >
      > downloaded several FTP servers, but I cannot connect to the FTP<BR>
      > >
      > server. I followed the instructions on<BR>
      > >
      > <a
      href="http://www.nslu2-linux.org/wiki/HowTo/SetupFtpd.">http://www.nslu2-linux.org/wiki/HowTo/SetupFtpd.</a><BR>
      > >
      > <BR>
      > >
      > The path on step 4 is different. I find the ftpd in<BR>
      > >
      > /share/hdd/conf/opt/libexec/ftpd after an ipkg install. I copied the<BR>
      > >
      > ftpd file to /bin/ftpd and did a chmod. I start /bin/ftpd -D and
      after<BR>
      > >
      > a couple of milliseconds the # prompt appears<BR>
      > >
      > <BR>
      > >
      > When I do a ps -ef | grep ftpd, there are no processes running. When
      I<BR>
      > >
      > do a ftp <ipnr>, the ftp client immidiately closes the
      connection. I<BR>
      > >
      > have tried several ftp servers, none is working. <BR>
      > >
      > <BR>
      > >
      > Any tips would be great. I tried ftp from several different clients
      to<BR>
      > >
      > check if it is not a firewall issue.<BR>
      > >
      > <BR>
      > >
      > <BR>
      > >
      > <BR>
      > >
      > <BR>
      > >
      > </tt>
      > >
      >
      > >
      > <br><br>
      > >
      > <tt>
      > >
      > [ Moderator Note: All static information is slowly moving to the
      Wiki at <a
      href="http://www.nslu2-linux.org">http://www.nslu2-linux.org</a> ]</tt>
      > >
      > <br><br>
      > >
      >
      > >
      > <br>
      > >
      >
      > >
      > <!-- |**|begin egp html banner|**| -->
      > >
      >
      > >
      > <table border=0 cellspacing=0 cellpadding=2>
      > >
      > <tr bgcolor=#FFFFCC>
      > >
      > <td align=center><font size="-1" color=#003399><b>Yahoo! Groups
      Sponsor</b></font></td>
      > >
      > </tr>
      > >
      > <tr bgcolor=#FFFFFF>
      > >
      > <td align=center width=470><table border=0 cellpadding=0
      cellspacing=0> <tr> <td align=center><font face=arial
      size=-2>ADVERTISEMENT</font><br><a
      href="http://us.ard.yahoo.com/SIG=129oosmtq/M=298184.6018725.7038619.3001176/D=groups/S=1705004750:HM/EXP=1109708944/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075"
      alt=""><img
      src="http://us.a1.yimg.com/us.yimg.com/a/ne/netflix/22305_0205_016_b_300250_a.gif"
      alt="click here" width="300" height="250"
      border="0"></a></td></tr></table> </td>
      > >
      > </tr>
      > >
      > <tr><td><img alt="" width=1 height=1
      src="http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=:HM/A=2593423/rand=148348779"></td></tr>
      > >
      > </table>
      > >
      >
      > >
      > <!-- |**|end egp html banner|**| -->
      > >
      >
      > >
      >
      > >
      >
      > >
      > <!-- |**|begin egp html banner|**| -->
      > >
      >
      > >
      > <br>
      > >
      > <tt><hr width="500">
      > >
      > <b>Yahoo! Groups Links</b><br>
      > >
      > <ul>
      > >
      > <li>To visit your group on the web, go to:<br><a
      href="http://groups.yahoo.com/group/nslu2-linux/">http://groups.yahoo.com/group/nslu2-linux/</a><br> 
      > >
      > <li>To unsubscribe from this group, send an email to:<br><a
      href="mailto:nslu2-linux-unsubscribe@yahoogroups.com?subject=Unsubscribe">nslu2-linux-unsubscribe@yahoogroups.com</a><br> 
      > >
      > <li>Your use of Yahoo! Groups is subject to the <a
      href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.
      > >
      > </ul>
      > >
      > </tt>
      > >
      > </br>
      > >
      >
      > >
      > <!-- |**|end egp html banner|**| -->
      > >
      >
      > >
      >
      > >
      > </body></html>
      > >
      >
      > >
      >
      > >
      >
      > >
    • tonymy01
      ftpd -D doesn t show up in the process list for me either, do the inetd.conf mod and it will (should) work. It appears the process only shows up when you
      Message 2 of 9 , Mar 1, 2005
      • 0 Attachment
        Message
        ftpd -D doesn't show up in the process list for me either, do the inetd.conf mod and it will (should) work.   It appears the process only shows up when you attempt to ftp into the SLUG (well, certainly for the inetd.conf mod)
         
        Regards
        Tony.
        --
        http://tonyspage.abock.de for some Topfield info including turning those recordings into DVDs, adding features with the open source TAP environment etc...
        -----Original Message-----
        From: ohagers [mailto:ohagers@...]
        Sent: Wednesday, 2 March 2005 5:36 AM
        To: nslu2-linux@yahoogroups.com
        Subject: [nslu2-linux] Re: FTP into the unSlung NLSU2


        Hi Tony, thanks for the tip. But it is still not working. Starting
        FTPD -D gives no errors, but after a ps -ef | grep ftpd* there are no
        processes running ftpd. Is there some kind of logoption, so I can
        check which error the ftpd program issues?

        --- In nslu2-linux@yahoogroups.com, tonymy01 <tony_h@b...> wrote:
        > If your SLUG is unslung /opt/libexec is equal to
        /share/hdd/conf/opt/libexec/ (as /opt is symlinked to /share/hdd/conf.
          If you did an "ls -l" in the root directory you would see this).
        >
        > I followed these steps with no probs (I wrote this wiki entry):
        > http://www.nslu2-linux.org/wiki/Puppy/PuppyCron
        > Regards
        > --
        > Tonymy01
        > --
        > http://tonyspage.abock.de

      • tonymy01
        p.s. /var/log/messages will tell you if there was a bind problem with the daemon, I have this: Mar 2 07:42:01 ftpd[13773]: control bind: Address already
        Message 3 of 9 , Mar 1, 2005
        • 0 Attachment
          Message
          p.s.  /var/log/messages will tell you if there was a bind problem with the daemon, I have this:

          <91>Mar  2 07:42:01 ftpd[13773]: control bind: Address already in use

          when attempting to "ftp -D"
          Do the inetd.conf mod..
          Regards
          -----Original Message-----
          From: tonymy01 [mailto:tony_h@...]
          Sent: Wednesday, 2 March 2005 7:51 AM
          To: nslu2-linux@yahoogroups.com
          Subject: RE: [nslu2-linux] Re: FTP into the unSlung NLSU2

          ftpd -D doesn't show up in the process list for me either, do the inetd.conf mod and it will (should) work.   It appears the process only shows up when you attempt to ftp into the SLUG (well, certainly for the inetd.conf mod)
           
          Regards
          Tony.
          --
          http://tonyspage.abock.de for some Topfield info including turning those recordings into DVDs, adding features with the open source TAP environment etc...
          -----Original Message-----
          From: ohagers [mailto:ohagers@...]
          Sent: Wednesday, 2 March 2005 5:36 AM
          To: nslu2-linux@yahoogroups.com
          Subject: [nslu2-linux] Re: FTP into the unSlung NLSU2


          Hi Tony, thanks for the tip. But it is still not working. Starting
          FTPD -D gives no errors, but after a ps -ef | grep ftpd* there are no
          processes running ftpd. Is there some kind of logoption, so I can
          check which error the ftpd program issues?

          --- In nslu2-linux@yahoogroups.com, tonymy01 <tony_h@b...> wrote:
          > If your SLUG is unslung /opt/libexec is equal to
          /share/hdd/conf/opt/libexec/ (as /opt is symlinked to /share/hdd/conf.
            If you did an "ls -l" in the root directory you would see this).
          >
          > I followed these steps with no probs (I wrote this wiki entry):
          > http://www.nslu2-linux.org/wiki/Puppy/PuppyCron
          > Regards
          > --
          > Tonymy01
          > --
          > http://tonyspage.abock.de



          [ Moderator Note: All static information is slowly moving to the Wiki at http://www.nslu2-linux.org ]


        • ohagers
          Hi Tony, I edit the inetd.conf file and then typed /bin/inetd. In the /var/log/messages file, these lines appear: Mar 2 17:07:34 ftpd[1002]: control bind:
          Message 4 of 9 , Mar 2, 2005
          • 0 Attachment
            Hi Tony,

            I edit the inetd.conf file and then typed /bin/inetd. In the
            /var/log/messages file, these lines appear:

            <91>Mar 2 17:07:34 ftpd[1002]: control bind: Address already in use
            <27>Mar 2 17:22:35 inetd[1040]: ftp/tcp: bind: Address already in use
            <27>Mar 2 17:22:35 inetd[1040]: telnet/tcp: bind: Address already in use
            <27>Mar 2 17:32:29 inetd[1040]: telnet/tcp: bind: Address already in use
            <27>Mar 2 17:32:29 inetd[1040]: ftp/tcp: bind: Address already in use

            I am just starting with Linux, maybe I have to start /bin/inetd not
            from the command line. It seems to me that the FTP port (21?) is
            already taken by some application? Is there any way to check this out?

            Because I tried also other ftp programs like vsftpd, and they didn't
            work, it looks like there is some conflict.

            Onno


            --- In nslu2-linux@yahoogroups.com, "tonymy01" <tony_h@b...> wrote:
            > p.s. /var/log/messages will tell you if there was a bind problem
            with the
            > daemon, I have this:
            >
            > <91>Mar 2 07:42:01 ftpd[13773]: control bind: Address already in use
            >
            > when attempting to "ftp -D"
            > Do the inetd.conf mod..
            > Regards
          • ohagers
            Hi Tony, I did an nmap from a Windows XP PC to the unslung NLSU2 and this is what is says: 21/tcp open ftp 23/tcp open telnet 80/tcp open http 139/tcp
            Message 5 of 9 , Mar 2, 2005
            • 0 Attachment
              Hi Tony,

              I did an nmap from a Windows XP PC to the unslung NLSU2 and this is
              what is says:

              21/tcp open ftp
              23/tcp open telnet
              80/tcp open http
              139/tcp open netbios-ssn
              389/tcp open ldap
              3689/tcp open rendezvous

              So I think there is already i program conflicting with the ftpd demon,
              but maybe it is the ftpdemon itself? How can I figure this out on the
              NLSU2?

              Onno


              --- In nslu2-linux@yahoogroups.com, "tonymy01" <tony_h@b...> wrote:
              > p.s. /var/log/messages will tell you if there was a bind problem
              with the
              > daemon, I have this:
              >
              > <91>Mar 2 07:42:01 ftpd[13773]: control bind: Address already in use
              >
              > when attempting to "ftp -D"
              > Do the inetd.conf mod..
              > Regards
            • ohagers
              Found it! And working now. After I did an nmap to the NLSU2 machine from a Windows XP PC I found out that there was already a port 21 open. I search for the
              Message 6 of 9 , Mar 2, 2005
              • 0 Attachment
                Found it! And working now. After I did an nmap to the NLSU2 machine
                from a Windows XP PC I found out that there was already a port 21
                open. I search for the inetd processes and found out that it was
                running several times. I killed al instances and then started the ftp
                daemon manually by typing ftpd -D and it works now! I can ftp into the
                NLSU2 without any problems!

                Because the ftp is behind a firewall for now, I use it locally to
                update my website (Apache on the NLSU2), when I want to have it also
                accessible from the web I will probably will use vsftpd or something
                like that. Now I have to figure out what the rights has to be for the
                uploader to correctly display the pages. I am now using [root], but I
                am sure that this will not be the correct way to make it secure.
              • Robert Hammond
                In message , ohagers writes ... I have also discovered the same problem and cannot run up the ProFTPD server that
                Message 7 of 9 , Mar 19, 2005
                • 0 Attachment
                  In message <d050f1+mq63@...>, ohagers <ohagers@...> writes
                  >
                  >
                  >Found it! And working now. After I did an nmap to the NLSU2 machine
                  >from a Windows XP PC I found out that there was already a port 21
                  >open. I search for the inetd processes and found out that it was
                  >running several times. I killed al instances and then started the ftp
                  >daemon manually by typing ftpd -D and it works now! I can ftp into the
                  >NLSU2 without any problems!
                  >
                  I have also discovered the same problem and cannot run up the ProFTPD
                  server that I have installed (I want to use this server because it is
                  easy to configure the passive ports across my NAT router).

                  Can you enlighten me with more details of how to search for the running
                  port 21 process and how to kill it??


                  --
                  Robert Hammond
                  PGP:0x154144DA
                Your message has been successfully submitted and would be delivered to recipients shortly.