Tag Archives: minute

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
Unpack:
tar xvfz vsftpd-2.3.0pre1.tar.gz
Collect:
make
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

Continue reading vsftpd. FTP for a couple of minutes