|
VSFTPD also known as Very Secure FTP Daemon is an FTP server for Unix platform, VSFTPD release under GNU GPL (General Public License) and of cource is a open source sofware. I've already setup VSFTPD on my CentOS 5.3 as an anonymous FTP server. This is a litle how to setting up an anoymous FTP server using VSFTPD:
1. Install VSFTPD using yum $ sudo yum install vsftpd 2. Edit vsftpd.conf, I'm using vi editor for some reason  $ sudo vi /etc/vsftpd/vsftpd.conf anonymous_enable=YES local_enable=NO write_enable=NO #local_umask=022 anon_upload_enable=NO anon_mkdir_write_enable=NO dirmessage_enable=YES xferlog_enable=YES xferlog_file=/var/log/vsftpd.log xferlog_std_format=YES connect_from_port_20=YES hide_ids=NO pasv_min_port=50000 pasv_max_port=60000 chown_uploads=YES chown_username=ftp idle_session_timeout=600 data_connection_timeout=120 #nopriv_user=ftpsecure #async_abor_enable=YES #ascii_upload_enable=YES #ascii_download_enable=YES #chroot_list_enable=YES #chroot_list_file=/etc/vsftpd/chroot_list ftpd_banner=Welcome to Anon FTP servers!!! ls_recurse_enable=NO listen=NO pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES anon_root=/home/ftp/pub ftp_username=nobody accept_timeout=60 connect_timeout=60 anon_max_rate=1000000 max_clients=100 max_per_ip=5 #End of vsftpd.conf 3. Add vsftpd service into xinetd $ sudo cat /etc/xinetd.d/vsftpd service ftp { disable = no socket_type = stream wait = no user = root server = /usr/sbin/vsftpd per_source = 5 instances = 200 no_access = 192.168.30.1 banner_fail = /etc/vsftpd/busy_banner log_on_success += PID HOST DURATION log_on_failure += HOST } Make sure /home/ftp/puub is already created and owned by ftp $ ls -l /home/ftp drwxr-xr-x 6 ftp ftp 4096 Sep 15 17:17 pub Now trying to restart xinetd and vsftpd services will be loaded... $ sudo /etc/init.d/xinetd restart And voila..., anonymous ftp server already to use...
|