NSLU2-Linux
view · edit · print · history

HowTo.SetupFtpd History

Hide minor edits - Show changes to markup

December 29, 2009, at 07:14 AM by Jim DeLaHunt -- Stop spurious wikilink
Changed lines 12-13 from:
  • The inetutils module had an FTPd?, but inetutils is being phased out of Unslung.
to:
  • The inetutils module had an FTPd?, but inetutils is being phased out of Unslung.
December 29, 2009, at 06:18 AM by Jim DeLaHunt -- Revise and clarify introduction. Refactor. Change wikilinks from Unslung.* to Optware.*
Changed lines 1-6 from:

Notice

The inetutils ftpd is now phased out of Unslung.

Please use proftpd or vsftpd.

to:

Introduction

The File Transfer Protocol (FTP) is a very basic file service, and it's natural that an NSLU2 should support it. There are many different modules which can provide FTP services on your NSLU2. The standard Linksys software includes a FTP module known as bftpd. As you add modules to your NSLU2, you will probably want to stop using this and use some other FTP service.

FTP options

The Optware packages include many which support FTP.

  • VSftpd, or "Very Secure FTP" is secure, fast, and consumes few resources.
  • ProFTPd has very rich capabilities.
  • ncFTP - A user friendly FTP client with background spooling.
  • tftp-hpa - A simple tftp package
  • The inetutils module had an FTPd?, but inetutils is being phased out of Unslung.

See each of these module descriptions for how to install and configure them.

How to turn off the built-in bftpd FTP server

No matter which FTP option you choose, it will take the place of the bftpd (or bsftpd) built into the Linksys software. So, you should disable bftpd.

This is most easily done by going to the NSL2? web interface. Under Administration / System, uncheck the box next to "Enable FTP Server". Then press the "Save" button.

You can also check the file /etc/inetd.conf, which controls which services the the internet monitoring process inetd invokes. Delete any line beginning with "ftp" and containing "bftpd" to turn off bftpd. If you installed another FTP module, you may see other lines beginning with "ftp" in this file. There must be only one such line.

Troubleshooting

  • Problem: running /etc/rc.d/rc.xinetd gives an error message, "Unable to bind socket: : Address already in use. Unable to listen to socket". Solution: Look for configuration commands which prepare multiple FTP services. For example, be sure that /etc/inetd.conf contains only one line starting with "ftp".
  • Note that ipkg install lsof, "lsof | grep LISTEN" is of help as fuser is only available for slugos with newer libraries.)
  • Problem: No "ftpd" process running Solution: Actually, this is correct behaviour. There will be an inetd or xinetd process running. The FTPd? process doesn't get started until an FTP client attempts to contact the server with an FTP request.

Historical notes

How to set up an inetutils FTP server

Notice: The inetutils ftpd is now phased out of Unslung.

Please disable the builtin bftpd server, and use Optware packages proftpd or vsftpd instead.

November 25, 2007, at 07:38 PM by nathankirkhamrocketmailcom -- edited ipkg inetutils to ipkg install
Changed lines 19-20 from:
  1. ipkg inetutils
to:
  1. ipkg install inetutils
November 10, 2007, at 09:30 PM by case --
Changed lines 7-8 from:

(In standard circumstances: disable the builtin bsftpd / bftpd server first, easiest via the web frontend under Administration / System. /etc/inetd.conf should only have one line for ftp. Else, /etc/rc.d/rc.xinetd gives you "Unable to bind socket: address already in use. unable to listen to socket"! Note that ipkg install lsof, lsof | grep "lsof | grep LISTEN" is of help as fuser is only available for slugos with newer libraries.)

to:

(In standard circumstances: disable the builtin bsftpd / bftpd server first, easiest via the web frontend under Administration / System. /etc/inetd.conf should only have one line for ftp. Else, /etc/rc.d/rc.xinetd gives you "Unable to bind socket: address already in use. unable to listen to socket"! Note that ipkg install lsof, "lsof | grep LISTEN" is of help as fuser is only available for slugos with newer libraries.)

November 10, 2007, at 09:29 PM by case -- you probably should put that hint on vsftpd page too, which is password protected
Added lines 7-8:

(In standard circumstances: disable the builtin bsftpd / bftpd server first, easiest via the web frontend under Administration / System. /etc/inetd.conf should only have one line for ftp. Else, /etc/rc.d/rc.xinetd gives you "Unable to bind socket: address already in use. unable to listen to socket"! Note that ipkg install lsof, lsof | grep "lsof | grep LISTEN" is of help as fuser is only available for slugos with newer libraries.)

June 11, 2005, at 10:02 PM by tman --
Changed lines 5-6 from:

Plese use proftpd or vsftpd.

to:

Please use proftpd or vsftpd.

June 11, 2005, at 10:02 PM by tman --
Changed lines 5-6 from:

Plese use proftpd or vsftpd.

to:

Plese use proftpd or vsftpd.

Changed lines 15-16 from:
  1. telnet/ssh to the box
to:
  1. Telnet/SSH to the box
Changed line 49 from:

Files that you upload do not have the correct permissions. This means they are not browsable via SAMBA on your windows box.

to:

Files that you upload do not have the correct permissions. This means they are not browsable via Samba on your Windows box.

Changed lines 58-59 from:

Installing ftpd on unslung 3.18-beta

to:

Installing ftpd on Unslung 3.18-beta

Deleted line 60:
June 11, 2005, at 05:39 PM by bobtm --
Changed lines 3-6 from:

The inetutils ftpd is being phased out of Unslung.

Unless you have good reason to choose it over proftpd or vsftpd, stay away from it.

to:

The inetutils ftpd is now phased out of Unslung.

Plese use proftpd or vsftpd.

The rest of this page is present for historic reasons:

April 20, 2005, at 12:18 AM by tman --
Changed lines 58-59 from:

A german tutorial can be found at http://www.ruhrpottserver.de/index.php/FTP-Server_einrichten

to:

A German tutorial can be found at http://www.ruhrpottserver.de/index.php/FTP-Server_einrichten

April 19, 2005, at 06:12 PM by barrym --
Changed lines 3-4 from:

The inetutils ftpd is being phased out of Unslung. Unless you have good reason to choose it over proftpd and vsftpd, stay away from it.

to:

The inetutils ftpd is being phased out of Unslung.

Unless you have good reason to choose it over proftpd or vsftpd, stay away from it.

March 29, 2005, at 06:15 AM by fossy --
Changed lines 55-56 from:

A german tutorial can be found at URL(http://www.ruhrpottserver.de/index.php/FTP-Server_einrichten)

to:

A german tutorial can be found at http://www.ruhrpottserver.de/index.php/FTP-Server_einrichten

March 29, 2005, at 06:14 AM by fossy --
Added line 52:

Added lines 54-55:

Installing ftpd on unslung 3.18-beta A german tutorial can be found at URL(http://www.ruhrpottserver.de/index.php/FTP-Server_einrichten)

March 24, 2005, at 11:31 PM by bobtm --
Added lines 5-6:

March 24, 2005, at 11:30 PM by bobtm --
Added lines 1-4:

Notice

The inetutils ftpd is being phased out of Unslung. Unless you have good reason to choose it over proftpd and vsftpd, stay away from it.

January 01, 2005, at 11:35 AM by BattleTank --
Changed line 44 from:
  1. chmod -R 777 admin.everyone /share/hdd/data/public
to:
  1. chmod -R 777 /share/hdd/data/public
January 01, 2005, at 11:35 AM by BattleTank --
Changed line 42 from:
  1. chmown -R admin.everyone /share/hdd/data/public
to:
  1. chown -R admin.everyone /share/hdd/data/public
January 01, 2005, at 11:34 AM by BattleTank --
Changed line 42 from:
  1. chmown -R admin.Everyone /share/hdd/public
to:
  1. chmown -R admin.everyone /share/hdd/data/public
Changed line 44 from:
  1. chmod -R 777 admin.Everyone /share/hdd/public
to:
  1. chmod -R 777 admin.everyone /share/hdd/data/public
December 31, 2004, at 09:59 PM by Troglodyte --
Added lines 15-26:

Note: There may be a few inconsistencies relating to the above steps.

With my Unslung NSLU2 I had to modify the following:

3. ipkg install inetutils

4. cp /opt/libexec/ftpd /bin/ftpd

Before performing any of the steps, it may be necessary to first telnet into the box and type "ipkg update" in order to update the package repository.

December 15, 2004, at 12:37 AM by jrcoyne --
Changed line 17 from:

Anonymous users will only have read only access. They may browse but not upload or download.

to:

Anonymous users will only have read only access. They may browse but not upload or download. (If you follow the chmod 777 directions below, anonymous users will be able to do more. Only give out the security you want them to have!)

December 15, 2004, at 12:33 AM by jrcoyne --
Added lines 24-35:

Files that you upload do not have the correct permissions. This means they are not browsable via SAMBA on your windows box. to fix these :

  1. chmown -R admin.Everyone /share/hdd/public
  2. chmod -R 777 admin.Everyone /share/hdd/public
December 05, 2004, at 04:53 AM by tman --
Changed line 1 from:

Here are the instructions for setting up an ftp server on your unslung nslu2.

to:

Here are the instructions for setting up an FTP server on your Unslung NSLU2.

Changed line 3 from:

1) Get a running unslung nslu2 that you can log into.

to:
  1. Get a running Unslung NSLU2 that you can log into.
Changed line 5 from:

2) telnet/ssh to the box

to:
  1. telnet/ssh to the box
Changed line 7 from:

3) ipkg inetutils

to:
  1. ipkg inetutils
Changed line 9 from:

4) cd /opt/libexec

to:
  1. cp /opt/libexec/armv5b-softfloat-linux-ftpd /bin/ftpd
Changed line 11 from:

5) cp armv5b-softfloat-linux-ftpd /bin/ftpd

to:
  1. chmod 777 /bin/ftpd
Changed line 13 from:

6) cd /bin

to:
  1. /bin/ftpd -D
Changed line 15 from:

7) chmod 777 ftpd

to:

At this point you have a running ftpd server. If you FTP to your box, you will have full access to the entire NSLU2. Your external hard drive will be /share/hdd/data/public

Changed line 17 from:

8) ftpd -D

to:

Anonymous users will only have read only access. They may browse but not upload or download.

Added line 19:

Users configured on your NSLU2 will be able to browse and upload/download to any directory they have been given access to.

Changed lines 21-27 from:

At this point you have a running ftpd server. If you ftp to your box, you will have full access to the entire nslu2. Your external hard drive will be /share/hdd/data/public

The anonymous user can log in and browse (all directories) but will not be able to upload or download.

Users configured on your nslu2 will be able to log in and download and upload to whatever directories they have access to.

This server will NOT be run automatically, if you reset your nslu2 the server will be turned off.

to:

This server will NOT be run automatically, if you reset your NSLU2 you must restart the FTP daemon by running /bin/ftpd -D

Deleted line 23:
December 03, 2004, at 08:39 PM by jrcoyne --
Changed lines 1-29 from:

Describe SetupFtpd here.

to:

Here are the instructions for setting up an ftp server on your unslung nslu2.

1) Get a running unslung nslu2 that you can log into.

2) telnet/ssh to the box

3) ipkg inetutils

4) cd /opt/libexec

5) cp armv5b-softfloat-linux-ftpd /bin/ftpd

6) cd /bin

7) chmod 777 ftpd

8) ftpd -D

At this point you have a running ftpd server. If you ftp to your box, you will have full access to the entire nslu2. Your external hard drive will be /share/hdd/data/public

The anonymous user can log in and browse (all directories) but will not be able to upload or download.

Users configured on your nslu2 will be able to log in and download and upload to whatever directories they have access to.

This server will NOT be run automatically, if you reset your nslu2 the server will be turned off.

This method of running ftpd (ftpd -D) will run its own inet daemon, even through one is already running on the box.

view · edit · print · history · Last edited by Jim DeLaHunt.
Based on work by Jim DeLaHunt, nathankirkhamrocketmailcom, case, tman, bobtm, barrym, fossy, BattleTank, Troglodyte, and jrcoyne.
Originally by jrcoyne.
Page last modified on December 29, 2009, at 07:14 AM