Installing VSFTP services under Linux

Source: Internet
Author: User

Step one: See if the server is installed VSFTPD
Rpm-qa | grep vsftpd

View the SELinux configuration
Vim/etc/selinux/config
Modify the SELinux value to Disabled

Step Two: Install the VSFTPD service
Yum Install-y vsftpd

Step Three: Modify the configuration file
Vim/etc/vsftpd/vsftpd.conf
Vsftpd.conf parameter Description
Anonymous_enable=yes/no whether to allow anonymous logons
Anon_root=/opt/vsftp Anonymous Login The default home directory
Chroot_local_user whether to restrict all users to the home directory, yes to enable no disable. (The default value is no, that is, the FTP user can switch up to the directory if not configured after installing VSFTPD)
Chroot_list_enable whether to start the Restricted Users list Yes to enable no disable (including commented out and disabled)
Chroot_list_file whether to limit the list of users in the home directory

Fourth step: Add an FTP user
Useradd ftpuser-s/sbin/nologin-d/opt/vsftp/ftpuser//Add Ftpuser user, the default home directory for this user is/opt/vsftp/ftpuser

Test method:

1, enter on the server: FTP 127.0.0.1 Enter, prompt for user name password, see if the normal login, if there is a problem, specifically in the troubleshooting

2, server-side login no problem, and then use the client to access, see if it is normal.


Precautions:
FTP home directory cannot be set to 777 permissions, need to set to 755 permissions, otherwise it will report an error

If there is a problem in the configuration process, please leave a message.

Installing VSFTP services under Linux

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.