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 vsftpd for Linux

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

Share

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

This article introduces the relevant knowledge of "how to install and configure vsftpd in Linux". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

1. Install vsftpd software first, use yum to install or copy vsftpd software to rpm -i to install

[root@mysql ~]# rpm -qa | grep vsftpd

vsftpd-2.2.2-12.el6_5.1.i686

2.vsftpd.conf configuration file

[root@mysql ~]# cd /etc/vsftpd/

[root@mysql vsftpd]# ll

total 24

-rw-r--r-- 1 root root 7 Mar 2 21:15 chroot_list #add upload,upload as os account number (useradd upload;passwd upload;chown -R upload:upload /opt/ftp/upload)

-rw----- 1 root root 125 Mar 2 21:13 ftusers #do not join upload

-rw----- 1 root root 361 Mar 1 23:04 user_list #Don't upload

-rw------- 1 root root 4650 Mar 2 21:27 vsftpd.conf

-rwxr--r--. 1 root root 338 Aug 4 2014 vsftpd_conf_migrate.sh

[root@mysql vsftpd]# cat vsftpd.conf | grep -v "#"

anonymous_enable=YES

local_enable=YES

write_enable=YES

local_umask=022

dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

xferlog_std_format=YES

chroot_local_user=YES

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd/chroot_list

listen=YES

pam_service_name=vsftpd

userlist_enable=YES

tcp_wrappers=YES

local_root=/opt/ftp/upload #upload ftp directory

3. Turn off firewalls and selinux

service iptables stop

chkconfig iptables off

[root@mysql vsftpd]# cat /etc/selinux/config | grep -v "#"

SELINUX=disabled

SELINUXTYPE=targeted 4. Restart vsftpd service

[root@mysql vsftpd]# service vsftpd restart

Shutting down vsftpd: [ OK ]

Starting vsftpd for vsftpd: [ OK ]

"Linux how to install and configure vsftpd" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

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