Aogu 于 2011-01-03 20:57:47发表:
向楼主学习
chenmeng10 于 2011-01-03 16:51:17发表:
[i=s] 本帖最后由 chenmeng10 于 2011-1-3 17:03 编辑 [/i]anonymous_enable=YES #local_enable=NO write_enable=YES #local_umask=022 anon_umask=022 anon_upload_enable=YES #anon_world_readable_only=NO anon_mkdir_write_enable=YES dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES #chown_uploads=YES #chown_username=ftpmaster xferlog_file=/var/log/vsftpd.log #xferlog_std_format=YES #idle_session_timeout=600 #data_connection_timeout=120 #nopriv_user=ftpsecure #async_abor_enable=YES #ascii_upload_enable=YES #ascii_download_enable=YES #ftpd_banner=Welcome to blah FTP service. #deny_email_enable=YES #banned_email_file=/etc/vsftpd/banned_emails #chroot_local_user=YES #chroot_list_enable=YES #chroot_list_file=/etc/vsftpd/chroot_list #ls_recurse_enable=YES listen=YES #listen_ipv6=YES #pam_service_name=vsftpd userlist_enable=YES #tcp_wrappers=YES 以上是配置文件!还要做一步: chmod 777 /var/ftp chmod 777 /var/ftp/pub 就行了!匿名ftp的默认目录是/var/ftp,
Aogu 于 2011-01-03 20:57:47发表:
向楼主学习
chenmeng10 于 2011-01-03 16:51:17发表:
[i=s] 本帖最后由 chenmeng10 于 2011-1-3 17:03 编辑 [/i]
anonymous_enable=YES
#local_enable=NO
write_enable=YES
#local_umask=022
anon_umask=022
anon_upload_enable=YES
#anon_world_readable_only=NO
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=ftpmaster
xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd/banned_emails
#chroot_local_user=YES
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd/chroot_list
#ls_recurse_enable=YES
listen=YES
#listen_ipv6=YES
#pam_service_name=vsftpd
userlist_enable=YES
#tcp_wrappers=YES
以上是配置文件!还要做一步:
chmod 777 /var/ftp
chmod 777 /var/ftp/pub
就行了!匿名ftp的默认目录是/var/ftp,