Detailed Linux system: Vsftp configuration method

  

Users of Linux system may not be able to reinstall Vsftp, but if it is rarely contacted by this system or the software, the process of reinstalling and configuring is It's very difficult, so today this tutorial will give you some methods.

Reinstalling and Configuring Virtual Users

The following are all done under the root user

#tarzxvfvsftpd-2.0.5.tar.gz——Unpacking

#cdvsftpd-2.0.5.tar.gz—— After decompression, go to vsftpd-2.0.5.tar.gz directory

#mkdir/usr/share/empty/——VSFTPD default The setup requires an empty directory: /usr/share/empty

#mkdir/var/ftp/—— if anonymous users are allowed, then you will need a "ftp" user and their home Directory (this home directory does not belong to "ldquo; ftp" users, and "ftp" users do not have write access to it) in your system.

#adduser then enter, according to the program description to add two users "nobody" and "ftp", 'nobody' generally exist already, if the user is prompted to exist when adding, do not add It is. The 'ftp' user settings are set to /var/ftp

#chmod755/var/ftp—— set the permissions of the /var/ftp directory to drwxr-xr-x

#make

#makeinstall

#cpvsftpd.conf/etc——"makeinstall"Do not copy the default configuration file, so manually copy it in the past. Different system locations may be different. Look, if there is /etc/vsftp directory, copy it to /etc/vsftp

Installation is complete.

Test it out:

Edit /etc/vsftpd.conf and add the following line at the bottom:

listen=YES

Make sure you are not running Other FTP services (otherwise VSFTPD cannot occupy the 21 ports required for FTP).

#/usr/local/sbin/vsftpd&

[1]306

If everything is ok, then you will be connected to the FTP server.

Copyright © Windows knowledge All Rights Reserved