Linux under VSFTPD installation configuration FTP server

Source: Internet
Author: User

1, installation vsftpd
# yum Install vsftpd


2. Start VSFTPD
# service VSFTPD Start


3. Turn off the firewall
# Service Iptables Stop
You can log on anonymously at this time.



4. Turn off SELinux
# Vi/etc/selinux/config
Selinux=disabled
# Setenforce 0



5. Create user
Because the VSFTPD default is not allowed to log in with the root user, you have to create a new user
# Useradd Doiido
# passwd



6. Create the specified directory and give permissions
# mkdir-p/doiido/web/www
# chmod 777/doiido/web/www/



7. Modify the configuration file
# vi/etc/vsftpd/vsftpd.conf
#将所有的都删除, and then add the following parameters anonymous_enable=nolocal_enable=yeswrite_enable=yeslocal_umask=022dirmessage_enable= Yesconnect_from_port_20=yesxferlog_std_format=yeslisten=yespam_service_name=vsftpduserlist_enable=yestcp_ Wrappers=yeschroot_local_user=yeslocal_root=/doiido/web/www



8. Restart the VSFTPD service
# Service VSFTPD Restart
At this point, you can log in with a local user and lock in the/doiido/web/www directory after logging in



9. Set Boot from boot
# Chkconfig VSFTPD on
So you don't have to start every time you boot VSFTPD


Linux under VSFTPD installation configuration FTP server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.