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
阅读(2247) | 评论(0) | 转发(0) |