1. #sudo Apt-get Install VSFTPD
#sudo Service vsftpd Restart
2. Modify the configuration file/etc/pam.d/vsftpd:
VI/ETC/PAM.D/VSFTPD #注释掉下面一行 #auth Required pam_shells.so
3. Modification:/etc/vsftpd.conf
[Email protected]:~# cat/etc/vsftpd.conf ####################### #anonymous_enable =nolocal_enable=yeswrite_enable= yeslocal_umask=022dirmessage_enable=yesxferlog_enable=yes# Open Active Mode #port_enable=yes#connect_from_port_20=yes#ftp_ data_port=%portnumber%xferlog_std_format=yeslisten=yespam_service_name=vsftpduserlist_enable=yesuserlist_deny= yes# Competition Login FTP user, userlist_file=/etc/vsftpd.user_listtcp_wrappers=nochroot_local_user=yeschroot_list_enable=yes# Add users who are not restricted by chroot, that is, you can leave the host directory (you need to create Chroot_list) chroot_list_file=/etc/vsftpd.chroot_listascii_download_enable= Yesascii_upload_enable=yes#ftpd_banner=welcome to Blah FTP service. #开启被动模式, firewall to release 20,40100~40200 between ports, use a valid pasv_ enable=yespasv_min_port=40100pasv_max_port=40200###############################
4. Configure FTP directory permissions:
"OOPS:vsftpd:refusing to run with writable root inside Chroot ()" #出现以上问题, is a privilege configuration issue #chown a-w/home/ftp or #chown ftp:ftp /home/ftp#chmod 775/home/ftp
5. Restart VSFTPD
Ubuntu 14 Configuration Vsftp