wymillerlinux / lftpd

A lame FTP daemon-ish server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lftpd

A lame FTP daemon-ish server, created with pyftpdlib and setproctitle. Used only on Unix and Unix-like system such as Linux, FreeBSD, Solaris, macOS and others. Now Dockerized! Run the Dockerfile to have this run in a container! Note that the Docker image is running on Debian Linux.

Installation

First, I assume you have Python 3, git, and optionally Docker, to run this software. If you don't have these pieces of software, please use your package manager to install them.

Vanilla Python 3

This not meant to be used production as this program has not benchmarked; you have been warned.

Install these packages from pip:
pip3 install pyftpdlib
pip3 install setproctitle

Or you can run the following command:
pip3 install -r requirements.txt

If you don't have pip installed, install it via your package manager for painless installation.

Docker

Build the image:
docker build -t lftpd .

Then, run the image:
docker run -p 21:21 lftpd

To fully stop the container, press Control + C to quit the container. Then, stop the container by running the following command:
docker stop <container name or ID>
Replace 'container name or ID' with the actual name or ID of the container. You can obtain this by running the follwing command:
docker ps

Running

Running is very simple: python3 ftpserver.py

No flags and no extensions! I will add extensions once this FTP server becomes more mature and more stable.

Use a FTP client like Filezilla to test this.

Troubleshooting

As far as I know, you didn't install something correctly. Make sure you installed everything. If nothing works, email me.

Contributions

They are always welcome! Email me or send in a PR.

About

A lame FTP daemon-ish server

License:MIT License


Languages

Language:Python 93.5%Language:Dockerfile 6.5%