Chinaunix首页 | 论坛 | 博客
  • 博客访问: 306262
  • 博文数量: 89
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 691
  • 用 户 组: 普通用户
  • 注册时间: 2015-09-20 16:58
文章分类

全部博文(89)

文章存档

2017年(1)

2016年(35)

2015年(53)

我的朋友

分类: LINUX

2016-11-16 16:55:29


1, vsftpd配置文件 
#cat /usr/local/etc/vsftpd.conf

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#connecting setting
listen=YES
connect_from_port_20=YES
#listen_port=10020
#ftp_data_port=10021
background=YES

#disable anonymous login
anonymous_enable=NO

#only local user in /etc/vsftpd.user_list can login
pam_service_name=vsftpd
local_enable=YES
userlist_deny=NO
userlist_enable=YES
userlist_file=/usr/local/etc/vsftpd.user_list


#all user no allow chroot
chroot_local_user=YES
chroot_list_enable=NO
allow_writeable_chroot=YES
secure_chroot_dir=/usr/local/share/vsftpd/empty


#local user setting
write_enable=YES
local_umask=022
#local_root=/usr/local/share/vsftpd/empty
user_config_dir=/usr/local/etc/vsftpd.user_config_dir


#limit
max_per_ip=5
max_clients=200
trans_chunk_size=1048576


#other setting
use_localtime=YES
xferlog_enable=YES


2,用户列表
#cat /usr/local/etc/vsftpd.user_list
ftp1
ftp2
ftp3

3, 用户定义配置
#cat /usr/local/etc/vsftpd.user_config_dir/ftp1
local_root=/srv/ftp/vsftpd/ftp1

#cat /usr/local/etc/vsftpd.user_config_dir/ftp2
local_root=/srv/ftp/vsftpd/ftp2

#cat /usr/local/etc/vsftpd.user_config_dir/ftp3
local_root=/srv/ftp/vsftpd/ftp3


阅读(2190) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~