环境说明:ubuntu10.04 proftpd
打开/etc/proftpd/proftpd.conf
******************此处省略N个字儿*******************************
下面介绍anonymous部分
首先uncomment anonymous 部分(即#$$$$$$$$$$$$$$$$$$$所在行)
# A basic anonymous configuration, no upload directories.
<Anonymous /home/FTP-shared/download> #anonymous登录ftp后的目录 #$$$$$$$$$$$$$$$$$$$
User ftp
UserAlias anonymous ftp #重要 #UserAlias "登录者的帐号" "实际linux主机的帐号"
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
</Anonymous> #$$$$$$$$$$$$$$$$$$$