The actual use of FTP tools, need to do in the Linux configuration, the original use of VSFTPD, the results of a variety of problems, finally selected PROFTPD This tool, configuration is directly available.
All of the following actions need to be switched to the root user operation!
Update source and Installation PROFTPD
Update Source:
sudo apt-get update
Install PROFTPD:
Apt-get Install PROFTPD
Adding FTP Groups and users
To add a group:
Groupadd FTPG
To create an FTP user:
Useradd ftpu-d/home/ftpu/-G FTPG
Set Password
passwd FTPU
After the creation is complete, you need to modify the permissions to access the FTP directory only:
Vi/etc/proftpd/proftpd.conf
Remove the comment before the following line #
# defaultroot ~
Prevent users from using terminal logins such as SSH
Edit:
vi/etc/passwd
Will
Ftpu:x:1006:1004::/srv/ftp/:/bin/sh
Modified into
Ftp:x:107:65534::/srv/ftp:/sbin/nologin
Next:
Vi/etc/shells
At the end of the file, add:
/sbin/nologin
Restart the PROFTPD service:
/ETC/INIT.D/PROFTPD restart
Log in using the FTP tool.