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 install and configure CentOS vsftpd

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

Share

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

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.

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