Vsftpd configuration in centos 6.5

Source: Internet
Author: User

I. Install software

Yum install vsftpd

II:

# Useradd-S/sbin/nologin-D/data/ftp-g ftp ftpadmin

# Passwd ftpadmin

Note:

-S/sbin/nologin makes it unable to log on to the system

-D indicates that the user directory is/data/ftp

-G ftp: Add users to the FTP group


# Chmod-r 744/data/ftp

# Chgrp-r FTP/data/ftp

III:

Configure/etc/vsftpd. conf

Modify two items:

Note: This configuration file is only modified to the following two items based on the default configuration file:
Anonymous_enable = No # disable anonymous logon
Chroot_local_user = yes # restrict all ftp users in the system to the Home Directory

# Vi/etc/vsftpd/ftpusers comment out the root user
# Vi/etc/vsftpd/user_list use the root annotation to cancel the root logon.

To the end

Service vsftpd restart

You can.

Login: ftp: // 192.168.0.73/ftpadmin

All is OK !!!

The basic functions have been implemented so far,

However, if multiple users are required to log on to a directory with different permissions, virtual users are required.

For how to create and configure a virtual user, see youdao note.

Vsftpd configuration in centos 6.5

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.