Linux Install FTP server VSFTPD steps detailed

Source: Internet
Author: User


Check first, there is no vsftp server

Rpm-qa | grep *ftp*

If so, please uninstall it

Installing the VSFTPD server

Yum-y Install VSFTPD

Modifying a configuration file/etc/vsftpd/vsftpd.conf the following items


#禁止匿名访问
Anonymous_enable=no

Restrict the specified user to access other users can not access the file tail modified as follows


Userlist_enable=yes
Tcp_wrappers=yes
Userlist_deny=no
Userlist_file=/etc/vsftpd/vsftpd.user_file

Set users to access only their own host directory Chroot


Chroot_local_user=yes

For better security, you can modify the VSFTPD port "do not modify"

LISTEN_PORT=2001 Custom FTP port write more than 1024 ports "look at your personal needs, don't mess up"

Create the desired user (example for creating two users)
Useradd ftpuser1-s/sbin/nologin-d/web/aa

passwd Ftpuser1

Useradd ftpuser2-s/sbin/nologin-d/web/bb

passwd Ftpuser2


Vim/etc/vsftpd/vsftpd.user_file
Ftpuser1
Ftpuser2

And then start the FTP

Service vsftpd start or/etc/rc.d/init.d/vsftpd start

Add FTP to boot vim/etc/rc.local

Add to

/ETC/RC.D/INIT.D/VSFTPD start

OK, configuration complete, others according to their own need to modify it

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.