4 月 242017
 

vsftpd使用系统用户及被动模式配置

anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
pasv_max_port=40100
pasv_min_port=40200

iptables -I INPUT -p tcp –dport 21 -j ACCEPT
iptables -I INPUT -p tcp –dport 40100:40200 -j ACCEPT
useradd tom -s /sbin/nologin
passwd tom

# chkconfig –level 35 vsftpd on
# chkconfig –list vsftpd
vsftpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
#

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据