码迷,mamicode.com
首页 > 其他好文 > 详细

简单ftp服务器搭建

时间:2016-05-18 10:57:46      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:vsftpd

1.yum
2.cat /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


#guest_enable=YES
#guest_username=ftp
#user_config_dir=/etc/vsftpd/vuser_conf
3.cat /etc/vsftpd/chroot_list
xx
4.useradd xx -d /opt/ftp -s /sbin/nologin
  echo "密码"|passwd --stdin xx
5.chown -R xx.xx /opt/ftp


本文出自 “人,要有自己的想法” 博客,请务必保留此出处http://szgb2014.blog.51cto.com/340201/1774613

简单ftp服务器搭建

标签:vsftpd

原文地址:http://szgb2014.blog.51cto.com/340201/1774613

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!