Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
-
xiaopeng14
- 帖子: 76
- 注册时间: 2008-04-26 9:39
#1
帖子
由 xiaopeng14 » 2009-09-18 20:33
看我的配置文件
# Example config file /etc/vsftpd/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.
#
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
local_umask=022
#
anon_upload_enable=YES
#
anon_mkdir_write_enable=YES
#
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
#chown_uploads=YES
#chown_username=whoever
#
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
#nopriv_user=ftpsecure
#
#async_abor_enable=YES
#
# ASCII mangling is a horrible feature of the protocol.
ascii_upload_enable=YES
ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd/banned_emails
#
#Chroot_local_user=yes
#chroot_list_file=/etc/vsftpd/chroot_list
#
#ls_recurse_enable=YES
#
listen=YES
#
#listen_ipv6=YES
guest_enable=YES
guest_username=ftpuser
virtual_use_local_privs=YES
secure_chroot_dir=/tmp
user_config_dir=/etc/vsftpd/vconf //虚拟用户个性配置文件
pam_service_name=ftp.vu
tcp_wrappers=YES
ftp.vu 这个vu是什么格式阿
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth sufficient /lib/security/pam_userdb.so db=/etc/vsftpd/virtusers crip=hash
account sufficient /lib/security/pam_userdb.so db=/etc/vsftpd/virtusers crip=hash
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so
不能用虚拟帐户登录 我很郁闷阿~~