Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set vsftpd in CentOS

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about how to set up vsftpd in CentOS, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

1. CentOS vsftpd installation

Check in the service to see if the VSFTPD service is installed. If not, download and install:

Rpm-ivh vsftpd-2.0.5-12.el5.i386.rpm

2. Set CentOS vsftpd self-startup

Chkconfig-level 35 vsftpd on

III. CentOS vsftpd configuration

1 Open the / etc/vsftpd/vsftpd.conf file. Change anonymous_enable=YES to anonymous_enable=NO

2 Open the / etc/vsftpd/vsftpd.conf file. Add user_config_dir=/etc/vsftpd/virtual and set up the virtual directory. Create a file with the user name in this directory and write it to: local_root= [directory], which is the home directory when FTP connects.

3 limit users to their own directory: modify the vsftpd.conf file and uncomment:

Chroot_list_enable=YES

Chroot_list_file=/etc/vsftpd/chroot_list

Add the file chroot_list in the / etc/vsftpd/ directory and add the local user name as the FTP user.

4 solve the problem that users are unable to access the directory:

Open the terminal and enter: setsebool-P ftpd_disable_trans 1

Then restart the FTP service: service vsftpd restart

4. Permissions:

Suppose it is / var/www/html

The permission of this directory should be 770, root,group owner is ftp.

Chmod 770 / var/www/html

Chown root:ftp / var/www/html

The above is how to set up vsftpd in CentOS. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report