Install and configure the ftp server in vsftpd in Linux

Source: Internet
Author: User

Install and configure the ftp server in vsftpd in Linux
1. Install vsftpd
# Yum install vsftpd


2. Start vsftpd
# Service vsftpd start


3. Disable the Firewall
# Service iptables stop
At this time, you can log on anonymously.
4. Disable selinux.
# Vi/etc/selinux/config
SELINUX = disabled
# Setenforce 0
5. Create a user
Because vsftpd does not allow logon by the root user by default, you must create a new user.
# Useradd doiido
# Passwd
6. Create a specified directory and grant permissions
# Mkdir-p/doiido/web/www
# Chmod 777/doiido/web/www/
7. modify the configuration file
# Vi/etc/vsftpd. conf

# Delete all objects, then add the following parameter export = NOlocal_enable = YESwrite_enable = YESlocal_umask = affinity = YESlisten = YESpam_service_name = affinity = YESchroot_local_user = localyes_root =/doiido/web/www
8. Restart the vsftpd service.
# Service vsftpd restart
At this time, you can use a local user to log on, and the user is locked in the/doiido/web/www directory after logon.
9. Set auto-start upon startup
# Chkconfig vsftpd on
In this way, you do not need to start vsftpd every time you start the instance.


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.