Arguments can be given to unFTP either via the command line or via environment variables. To show a list of available program arguments type the following:

unftp --help

To run unFTP with everything set to the defaults:


This will start unFTP:

  • with a filesystem back-end rooted at your OS temporary directory.
  • the FTP control channel bound to and the data channel range set to ports 49152..65535
  • authentication being anonymous i.e. clients can specify any username and password

Now serving data from your computer's temporary directory is not very useful so lets point it to a different directory by using the --root-dir argument. In addition, lets limit the data port range a bit:

unftp \
  --root-dir=/home/unftp/data \
  --bind-address= \
  --passive-ports=50000-51000 \

Powered by Doctave