Build an FTP server using CentOS
A simple record for building an FTP server in CentOS.
1. Install vsftpd
Yum install vsftpd
2. Edit iptables
Vi/etc/sysconfig/iptables
-A input-m state -- state NEW-m tcp-p tcp -- dport 21
Service iptables restart
3. Configure vsftpd
Vi/etc/vsftpd. conf
Anonymous_enable = NO // you are not allowed to access anonymous users.
4. Add an ftp user
Vi/etc/vsftpd. conf
Chroot_list_enable = YES
Chroot_list_file =/etc/vsftpd/chroot_list
5. Add the ftp user home directory
Useradd-d/var/www/html-g ftp-s/sbin/nologin test
6. Set the User Password
Passwd test
7. Modify permissions
Chmod 777/var/www/html-R
Chown test: ftp/var/www/html
8. Start vsftpd
Service vsftpd restart
OK! You can log on with the test user.
VsFTPd configuration Tutorial:
Simple and practical Ubuntu FTP setup
Set up FTP server and Apache server on Ubuntu
Install the LAMP \ vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Simple case of anonymous uploading of SeLinux and vsftpd on the RHEL6 Platform
Install vsftpd source code in Linux
Install and configure the FTP server vsftpd in openSUSE 13.2/13.1