Install vsftpd on centos

Source: Internet
Author: User

1. Install vsftpd

yum -y install vsftpd

2. Edit the vsftpd configuration file

cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf-bakecho ‘‘ > /etc/vsftpd/vsftpd.confvi /etc/vsftpd/vsftpd.conf

Add the following content:

Listen = Yes
Background = Yes
Anonymous_enable = No
Local_enable = Yes
Write_enable = Yes
Local_umask = 022
Anon_upload_enable = No
Anon_mkdir_write_enable = No
Dirmessage_enable = Yes
Xferlog_enable = Yes
Connect_from_port_20 = Yes
Chown_uploads = No
Xferlog_file =/var/log/vsftpd. Log
Xferlog_std_format = Yes
Async_abor_enable = Yes
Ascii_upload_enable = Yes
Ascii_download_enable = Yes
Ftpd_banner = welcome to hao32 FTP servers
Pam_service_name = vsftpd
Chroot_local_user = No
Chroot_list_enable = Yes
Chroot_list_file =/etc/vsftpd. chroot_list

Run the following command

touch /etc/vsftpd/vsftpd.chroot_listservice vsftpd start

If the following sentence appears:

Starting vsftpd For vsftpd: [OK]

Indicates the operation is successful.

3. Add a user

useradd ftpuser -d /home/ftp -s /sbin/nologin
passwd ftpuser
echo ‘ftpuser‘ >> /etc/vsftpd/vsftpd.chroot_list
service vsftpd restart

 

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.