一个简单的问题,通过这种配置,我允许匿名 ftp 用户。
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
Port 2121
Umask 022
MaxInstances 30
User ftp
Group ftp
SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog
PassivePorts 49152 65535
UseFtpUsers off
<Directory /*>
AllowOverwrite on
</Directory>
<Limit LOGIN>
AllowUser ftp
AllowUser anonymous
DenyAll
</Limit>
<Anonymous ~ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 50
# 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
<Limit WRITE>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
</Anonymous>
但是使用
ftp localhost 21
它要求输入密码我的问题是:如何完全禁用用户登录以只允许匿名?我想要这样的答案
"sorry ftp server is only anonymous"
引自ProFTPD:配置限制
PS你可能想在sorry.msg文件中使用“抱歉ftp服务器只是匿名”文本创建单独的
DisplayLogin sorry.msg
外部部分。<Anonymous>