1-use the following command to install proftpd: sudoapt-getinstallproftpd2-Add the following code in etc/shells (sudogedit/etc/shellstoopenthefile) (in command line mode sudovi/etc/shells ): /bin/false create a/home/FTP-shared directory: cd/home
1-use the following command to install proftpd:
Sudo apt-get install proftpd
2-Add the following code in etc/shells (sudo gedit/etc/shells to open the file) (in command line mode, sudo vi/etc/shells ):
/Bin/false
Create a/home/FTP-shared directory:
Cd/home
Sudo mkdir FTP-shared
Create a userftp user that can only be used to read ftp. this user does not need a valid shell (more secure), so select/bin/false shell to give userftp,/home/FTP-shared as the main directory.
To make this part clearer, I will give the command line for this operation:
Sudo useradd userftp-p your_password-d/home/FTP-shared-s/bin/false
Create a download and an upload directory under the FTP-shared directory:
Cd/home/FTP-shared/
Sudo mkdir download
Sudo mkdir upload