Quick Configuration Vsftp
Preface, Vsftp is a fairly secure FTP server, and VSFTP becomes the standard FTP server for RH8.0 and 9.0.
This paper uses experimental method to quickly configure Vsftp.
[Experimental purposes]
1. Configure an FTP service that allows anonymous users to download.
2. Configure an FTP service that allows anonymous users to upload.
[Experimental requirements]
A RH8.0 machine, ip:192.168.0.1. If 9.0, the configuration file is in/etc/vsftpd/vsftpd.conf and VSFTPD
Packages are integrated ANONFTP packages, and are configured in the same way.
[Experimental steps]
1. Configure an FTP service that allows anonymous users to download.
1) Close iptables.
# Service Iptables Stop
# chkconfig Iptables off
2 Install package.
Have you checked the following software packages?
xinetd
Vsftpd
Anonftp
What is lacking, what to put.
3) Start vsftp service.
# Chkconfig VSFTPD on
# Service XINETD Restart
Note: If RH9.0, use service vsftpd start.
4) Touch/var/ftp/pub/iamvsftpserver
5 FTP client login, such as: Anonymous landing with LFTP
# lftp 192.168.0.1
Note: Can I download/pub/iamvsftpserver?
2. Configure an FTP service that allows anonymous users to upload.
1 Create an upload directory in/var/ftp/and modify the permissions.
# mkdir/var/ftp/incoming
#chown root.ftp/var/ftp/incoming
#chmod 730/var/ftp/incoming
2) Edit/var/vsftpd.conf. (Note: rh9.0 is/var/vsftpd/vsftpd.conf)
Find # Anon_upload_enable=yes below, add the following four lines:
Anon_upload_enable=yes
Chown_uploads=yes
Chown_username=daemon
anon_umask=077
And make sure the Anonymous_enabled=yes is valid.
3 Login with FTP client software 192.168.0.1. Can you upload it to the incoming directory?
4) Observe the contents of/var/log/vsftpd.log.
[Experimental summary]
This article does not explain the contents of the configuration file, and most of the default configuration, if you want to understand the
The meaning of the configuration, refer to the note after the # number above.
[Digression]
Since Vsftp's access directory is in/var/ftp/, does it take all the things that are available to download the full CP to/var/ftp/pub
Down? No need! Let's say you have a catalogue under/data called/movie, and now we're going to give you this catalogue.
Download. The first step, # Mkdir/var/ftp/pub/movie. Step Two, Mount, # Mount-o Ro–bind
/database/movie/var/ftp/pub/movie. Is it easy to provide downloads now? Note: Provide the downloaded directory
Permission settings.