A lightweight ftp server written in C.
USER, PASS: users can login using these. Valid usernames and passwords are drawn
from a file in the current working directory of the server, named 'users'.
each line contains an entry in the format of username:password
.
a sample users file containing 3 users is provided.
Alternatively, you can specify another filename in the command line:
./ftp -u <Path to file>
PORT, PASV: Both active and passive mode are supported.
SYST, QUIT, LIST, CWD, PWD, RETR, STOR, DELE, RMD, MKD are all implemented.
If the server doesn't recognize a command, it will automatically send a
502 Command not implemented.
Simply launch the resulting executable after building. It will start listening on port 2121 by default. You can specify a different port number like this:
./ftp -p <Port>
By default, this program will serve the current working directory. You can specify a directory to serve via the -d option:
./ftp -d <Path to directory>