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 build a vsftpd server in centos 6.3s

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

Share

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

This article introduces how to build a vsftpd server in centos 6.3. the content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

1. First you need to install vsftpd

Yum-y install vsftpd

two。 Open vsftpd after installation

Service vsftpd start

If you need to run the following command each time you boot

Chkconfig-level 35 vsftpd on

3. Set ftp permissions

Vi / etc/vsftpd/vsftpd.conf

Change anonymous_enable=YES to anonymous_enable=NO

Save exit

4. Add ftp account and directory

User add-d / home/test.com-s / sbin/nologin test

Passwd test

Enter the password for test

Chmod-R 755 / home/test.com

Chown-R testt / home/test.com

Restart vsftpd

Service vsftpd restart

500cannot change / home/test.com may be quoted when connecting with ftp. Here is the solution.

Check the status of seLinux first.

Sestatus-b | grep ftp

See ftp_home_dir off or tftpd_disable_trans off or something. Just set one of them to on.

Setsebool-P ftp_home_dir on

Restart vsftpd

Service vsftpd restart

Login succeeded

5. Allow logged-in users to access their own directories

Vi vsftpd.conf

Chroot_local_user = YES

Remove this # save and restart vsftpd

530 Login incorrect appeared in centos8.

Tail-f / var/log/secure view the error message and modify it according to the corresponding information

If there is no information, modify the / etc/pam.d/vsftpd file, comment out auth required pam_shells.so, and restart whether v is a picture or not.

Prompt when using Filezilla-the server sent back a non-routable address, using the server address instead

Solution:

Change the Filezilla settings, edit-set-connect-FTP- passive mode, and change "use the external IP address of the server instead" to "return to active mode".

This is all about how to build a vsftpd server in centos 6.3.I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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