1. Configuring the VSFTP Server

Source: Internet
Author: User

1. Installing Vsftpyum-y Install FTP VSFTPD
2. Look at the path where the configuration file is located RPM-QC vsftpd
3. Backup VSFTPD file CP vsftpd.conf Vsftpd.conf.orgin
4. Create password plaintext file Vi/etc/vsftpd/vsftpuser.txtcaizheng //odd line user, even line password 123
5. Create a password DB file based on clear text db_load-t-T Hash-f/etc/vsftpd/vftpuser.txt/etc/vsftpd/vftpuser.db
6. Create a Guest account for VFTPDUseradd-d/ftp/private-s/sbin/nologin Vftpuser Note:/ftp/private may not have to create it yourself
7.Open the/etc/pam.d/vsftpd and comment out all the configuration lines for the auth and account, adding the following:Auth required pam_userdb.so Db=/etc/vsftpd/vftpuseraccount required Pam_userdb.sodb=/etc/vsftpd/vftpuser
8,Open/etc/vsftpd/vsftpd.conf, change # Anonymous_enable=yes to Anonymous_enable=noAt the bottom, add the following: Virtual_user_local_privas=yesguest_enable=yesguest_username=vftpuserchroot_local_user=yesallow_ Writeable_chroot=yes
9. Set VSFTPD BootSystemctl Enable VSFTPD

.restarting the VSFTPD servicesystemctl Restart vsftpd
11. Configuring Firewalls and SELinuxfirewall-cmd--permanent--zone=public--add-service=ftp
12. View VSFTPD Service Statussystemctl Status vsftpd
13. Authorization for Shared Documents chmod 777 /ftp/private

From for notes (Wiz)

1. Configuring the VSFTP 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.