vsftpd. FTP for a couple of minutes


Merge vsftpd, from here you can ftp://vsftpd.beasts.org/users/cevans/.
sudo -i
mkdir ~/temp | | cd ~/temp
wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.3.0pre1.tar.gz
tar xvfz vsftpd-2.3.0pre1.tar.gz
Appears vsftpd binary, copy it to a folder with the binaries:
cp vsftpd/usr/sbin/
Check whether there is user nobody:
cat /etc/passwd | grep nobody
If not — add:
useradd nobody
For default configuration, you must create a /usr/share/empty/:
mkdir /usr/share/empty/
Next, you need to create ftp user to home directory in /var/ftp/, then it will be the root of our server.
mkdir /var/ftp/
useradd-d /var/ftp ftp
Change the owner of the folders on the root and the appropriate rights:
chown root.root /var/ftp
chmod og-w /var/ftp
Transfer the actual file configuration in /etc:
cp vsftpd.conf /etc
Next edit vsftpd.conf:
vim /etc/vsftpd.conf

Allow anonymous access to the server:
anonymous_enable = YES
Allow the team on:
write_enable = YES
Expose local mask:
local_umask = 022
Allow users upload files to the server:
anon_upload_enable = YES
Allow users create folders:
anon_mkdir_write_enable = YES
Optional logging:
xferlog_enable = YES
Allow messages to the user:
dirmessage_enable = YES
Option for data port:
connect_from_port_20 = YES
Way of logging:
xferlog_file = / var / log / vsftpd.log
Asci allow transfer of files:
ascii_upload_enable = YES
ascii_download_enable = YES
If you do not use inetd:
listen = YES

Now run the server vsftpd:
/usr/sbin/vsftpd &
To fill the file on the server will create the appropriate folder:
mkdir /var/ftp/ upload | | chmod 777 /var/ftp/upload
PS: Also, there are options for the login for specific users with the ability to chroot to the home folder