我在使用一台 proftpd 服务器时遇到问题。我同时使用两种身份验证方法,匿名和用户身份验证。
我修改了 proftpd.conf 以针对 /etc/proftpd/passwd 文件进行身份验证,但是此警察阻止对匿名用户进行身份验证,即使我在 proftpd.conf 中设置了此指令
请原谅我的英语,这不是我的母语
我想要的很简单,用户认证和匿名用户同时进行
这是我尝试过的:
# /etc/proftpd/proftpd.conf
UseIPv6 off
IdentLookups off
UseReverseDNS off
ServerName "college"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
#TimeoutNoTransfer 600
#TimeoutStalled 600
#TimeoutIdle 1200
TimeoutNoTransfer 100
TimeoutStalled 50
TimeoutIdle 200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
RequireValidShell off
Port 21
PassivePorts 40000 50000
AuthOrder mod_auth_file.c
AuthUserFile /etc/proftpd/passwd
AuthGroupFile /etc/proftpd/group
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
MaxInstances 30
User proftpd
Group nogroup
Umask 022 022
AllowOverwrite off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 20
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
Include /etc/proftpd/conf.d/
DefaultRoot /home/college/ftp
<Anonymous /home/college/ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
RequireValidShell off
MaxClients 50
<Limit LOGIN>
AllowAll
</Limit>
<Directory /home/college/ftp>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory /home/college/ftp/upload>
<Limit WRITE>
AllowAll
</Limit>
</Directory>
</Anonymous>