红联Linux门户
Linux帮助

Ubuntu 下 vsftpd的虚拟用户配置

发布时间:2006-10-24 01:15:32来源:红联作者:晚点
#vsftpd.conf的配置文件
#用于虚拟用户的系统用户名是vftp
#生常db文件的db_load版本是4.4,不像传闻中的那样必须用3或者更低版本的

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
connect_from_port_20=YES
idle_session_timeout=600
data_connection_timeout=120
ftpd_banner=Welcome to xhy's FTP service.
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
guest_enable=YES
guest_username=vftp


#/etc/pam.d/vsftpd文件
#db文件安存储在/etc/vsftpd下 省略扩展名
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
文章评论

共有 0 条评论