Configure vsftpd in centos

Source: Internet
Author: User

Install yum directly, and there is no need to waste this time.

Yum install vsftpd

Simplest Configuration

Anonymous_enable = yes/no

Checks whether anonymous users are allowed to log on. Yes indicates that anonymous users are allowed to log on, and no indicates that anonymous users are not allowed. The default value is yes and the default value is no.


Add

Set the list of permitted accounts

Userlist_file =/etc/vsftpd/user_list

Set allowed account logon

Userlist_deny = No

Remove allowed accounts from ftpuser,


In general, the FTP directory is not in the home directory. Modify the directory.

Set user_config_dir =/etc/vsftpd_user_config in vsftpd. conf

In the/etc/vsftpd_user_config directory, create a configuration file for the test1 user. The file name is the same as the username, which is also test1.

Content
Local_root =/website


The upper level is not allowed.

chroot_local_user=YESchroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list

The user in the chroot_list will be allowed at the upper level, which is generally null.


Then you can log on and only operate in/website.







Configure vsftpd in centos

Related Article

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.