Skip to content

Instantly share code, notes, and snippets.

@copuzzle
Last active December 31, 2015 05:09
Show Gist options
  • Save copuzzle/7938871 to your computer and use it in GitHub Desktop.
Save copuzzle/7938871 to your computer and use it in GitHub Desktop.
connect_from_port_20=YES
#生成日志
xferlog_enable=YES
#指定登录转向目录
local_root=/var/www/share/lsgo
#chown_uploads=YES
#chown_username=anyone
#锁定用户在指定目录
allow_writeable_chroot=YES
#只列出用户用户工作目录(不从根目录开始列出)
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
#allow_writeable_chroot=YES
guest_enable=YES
# /etc/pam.d/vsftpd.vu 文件位置 应该是谁方式吧
pam_service_name=vsftpd.vu
#各个用户配置目录
user_config_dir=/etc/vsftpd/vsftpd_user_conf
virtual_use_local_privs=YES
#config for vitual users
#用户&密码 文件指定位置-> login.db
#由 db_load -T -t hash -f ftpvuser.txt login.db 来生成
auth required /lib/x86_64-linux-gnu/security/pam_userdb.so db=/etc/vsftpd/login
account required /lib/x86_64-linux-gnu/security/pam_userdb.so db=/etc/vsftpd/login
session required pam_loginuid.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment