In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to install and configure the vsFTPd FTP server with centos 5 yum. The content is concise and easy to understand, and it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
What is vsftpd?
Vsftpd is the most popular FTP server program in the Linux distribution. It is characterized by small and light, safe and easy to use.
The name vsftpd stands for "very secure FTP daemon", and security is one of the top concerns of its developer Chris Evans. At the beginning of the design and development of this FTP server, high security was a goal.
Install vsftpd
1. Execute the following command as an administrator (root)
Yum install vsftpd
2. Set the boot to start the vsftpd ftp service
Chkconfig vsftpd on
3. Start the vsftpd service
Service vsftpd start
Manage vsftpd related commands:
Stop vsftpd: service vsftpd stop
Restart vsftpd: service vsftpd restart
Configure the firewall
Open the / etc/sysconfig/iptables file
Vi / etc/sysconfig/iptables
Add the following code before the 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
Configure the vsftpd server
The default configuration file is / etc/vsftpd/vsftpd.conf, which you can open with a text editor.
Vi / etc/vsftpd/vsftpd.conf
Add ftp user
The following is to add a ftpuser user, set the root directory to / home/wwwroot/ftpuser, prohibit this user from logging into SSH, and restrict his access to other directories.
1. Modify / etc/vsftpd/vsftpd.conf
Change the next three lines
# chroot_list_enable=YES
# (default follows)
# chroot_list_file=/etc/vsftpd.chroot_list
Change to
Chroot_list_enable=YES
# (default follows)
Chroot_list_file=/etc/vsftpd/chroot_list
3. Add the user ftpuser, point to the directory / home/wwwroot/ftpuser, and forbid logging in to SSH.
Useradd-d / home/wwwroot/ftpuser-g ftp-s / sbin/nologin ftpuser
4. Set the user password
Passwd ftpuser
5. Edit the file chroot_list:
Vi / etc/vsftpd/chroot_list
The content is the ftp user name, with one line for each user, such as:
Peter
John
6. Restart vsftpd
Service vsftpd restart
In addition, if you find it troublesome to manage ftp usernames in the future, you can use script management officially released by centos. The address is as follows:
Http://wiki.centos.org/HowTos/Chroot_Vsftpd_with_non-system_users
Errors that have occurred
1 、 500 OOPS: cannot change directory
Solution: https://www.yisu.com/os/RedHat/40744.html
The above is how to install and configure vsFTPd FTP server for centos 5 yum. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.