Centos5yum installation and configuration of vsFTPdFTP server

Source: Internet
Author: User
Tags ssh access
Centos5yum installation and configuration of vsFTPdFTP server vsftpd as an FTP server is very common in Linux systems. The following describes how to install vsftp on centos. What is vsftpdvsftpd? it is the most popular FTP server program in the Linux release. Install and configure vsFTPd FTP server vsftpd as the FTP server in centos 5 yum, which is very common in Linux systems. The following describes how to install vsftp on centos. What is vsftpdvsftpd? it is the most popular FTP server program in the Linux release. Features: small, light, secure, and easy to use. The name of vsftpd stands for "very secure FTP daemon". security is one of the top concerns of Chris Evans, its developer. At the beginning of the FTP server design and development, high security is a goal. Install vsftpd1, run the following command yum install vsftpd2 as the administrator (root), set the startup vsftpd ftp service chkconfig vsftpd on3, start vsftpd service vsftpd start to manage vsftpd commands: stop vsftpd: service vsftpd stop restart vsftpd: service vsftpd restart configure firewall open/etc/sysconfig/iptables file vi/etc/sysconfig/iptables add the following code before REJECT line-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp- p tcp -- dport 21-j ACCEPT save and close the file, restart the firewall service iptables start to configure the default configuration file of the vsftpd server:/etc /Vsftpd. conf, which can be opened in a text editor. Vi/etc/vsftpd. add the ftpuser user to the conf file and set the root directory to/home/wwwroot/ftpuser. prohibit the user from logging on to SSH and restrict access to other directories. 1. modify/etc/vsftpd. conf: replace the following three rows: # chroot_list_enable = YES # (default follows) # chroot_list_file =/etc/vsftpd. change chroot_list to chroot_list_enable = YES # (default follows) chroot_list_file =/etc/vsftpd/chroot_list2. add the user ftpuser to the/home/wwwroot/ftpuser directory to prohibit SSH access. Useradd-d/home/wwwroot/ftpuser-g ftp-s/sbin/nologin ftpuser3. set the user password passwd ftpuser4. edit the file chroot_list: vi/etc/vsftpd/chroot_list contains the ftp user name. each user occupies one line, for example, peterjohn5. restart vsftpdservice vsftpd restart.
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.