How to install and configure CentOS vsftpd
How to install and configure CentOS vsftpd? For this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more small partners who want to solve this problem find a simpler and easier way.
CentOS vsftpd installation goes without saying, and service startup goes without saying. The key is CentOS vsftpd configuration after service startup:
My environment: CentOS 5.3 GNOME vsftpd
1, Installation: yum install vsftpd
2. Start: service vsftpd start
Create a user for FTP:
1. CentOS vsftpd uses Create User: "System| management| Users and Groups| User "," add user "such as ftp, password: ftpadmin, login shell: /sbin/nologin, the following three items" create home directory "," create private group for this user "," manually specify user ID", not enough options.
2, modify user attributes: double-click the user, the main directory input: /mnt/winc/ftproot, this directory is your ftp directory, group select ftp, OK, you can. Note: The default home directory is: /home/ftp, this place is recommended to modify the actual path of your ftp, for example, I changed it to "/mnt/winc/ftproot", because my ftp files are in this directory; log in sehll, select: /sbin/nologin, this user is not able to log in to the system, but can use ftp.
3. Modify the selinux parameter:
setsebool ftpd_disable_trans 1
service vsftpd restart
Note: If you do not modify, you will be prompted when connecting:
500 OOPS: cannot change directory:/mnt/winc/ftproot*******
500 OOPS: child died
This way CentOS vsftpd can be used normally... After the user is created, a line is added to the/etc/passwd file:
ftpadmin:x:501:50:ftpadmin:/mnt/winc/ftproot:/sbin/nologin
About how to use CentOS vsftpd installation and configuration questions to share the answers here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.