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 the service. The key is the CentOSvsftpd configuration after the service is started.
CentOS vsftpd is usually used. so I studied how to use CentOSvsftpd. 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 CentOSvsftpd to create a user: "system | management | user and group | user". for example, "add user": 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