The requirements are stated in Project-FTP server-20210513.pdf. We need to use vsftpd as FTP client and use our program as FTP server.
backup directory is the version control in our coding process. The Final Version is ftp.c file
- Install vsftpd following requirement file.
- Close vsftpd by
sudo service vsftpd close
- Compile ftp.c by
gcc -o ftp ftp.c
- Run by
sudo ./ftp
(Must be root) - Connect to server through client by
ftp 127.0.0.1
- Run corresponding command such as
user, ls, cd, mkdir, del, rename
I am satisfied and confident in our code. The command is well implemented, and it's a simple ftp server as we wished not a complex one like https://github.com/dasima/ftpServer. But it can run correctly in my PC and implements many functions than ours.
There is not Passive mode in our list
command, it will enter exception and exit.