Install and configure vsftpd in CentOS

Source: Internet
Author: User
CentOSvsftpd is usually used. so I studied how to use CentOSvsftpd. here I will share with you, hoping it will be useful to you. This section describes how to use CentOSvsftpd in CentOS. No need to install CentOSvsftpd, or start a service. The key is the service.

CentOS vsftpd is usually used. so I have studied how to use CentOS vsftpd. I will share it with you here, hoping it will be useful to you. This section describes how to use CentOS vsftpd in CentOS.

No need to install CentOS vsftpd or start the service. The key is the CentOS vsftpd configuration after the service is started:

My Environment: CentOS 5.3 GNOME vsftpd

1. Installation: yum install vsftpd

2. start: service vsftpd start

3. create a user for ftp:

1. use CentOS vsftpd to create a user: "system | management | user and group | user", "add user" for example: ftp, password: ftpadmin, login shell: /sbin/nologin, the following three "create a home directory", "create a private group for this user", and "manually specify a user ID" are not selected.

2. modify user attributes: Double-click the user and enter/mnt/winc/ftproot in the main directory. The directory is your ftp directory. select ftp for the group and click OK. Note: the default home directory is/home/ftp. we recommend that you change it to the actual ftp path, for example, "/mnt/winc/ftproot, because all my ftp files are in this directory. log on to sehll and select/sbin/nologin. This user cannot log on to the system, but can use ftp.

3. modify selinux parameters:

Setsebool ftpd_disable_trans 1

Service vsftpd restart

Note: If this parameter is not modified, the following message is displayed during connection:

500 OOPS: cannot change directory:/mnt/winc/ftproot *******

500 OOPS: child died

In this way, CentOS vsftpd can be used normally... after the user is created, a line will be added to the/etc/passwd file:

Ftpadmin: x: 501: 50: ftpadmin:/mnt/winc/ftproot:/sbin/nologin

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.