ich habe auf einem Debian Sarge einen proftd installiert und eingerichtet. Fast alles klappt, jedoch kann ein einzelner User (michael) sich nicht einloggen.
Alle Benutzer sind in der sekundären Gruppe ftpuser und der besagte User (michael) kann sich auch erfolgreich via SSH einloggen.
In den proftpd-logfiles unterscheidet sich die fehlgeschlagene Einwahl dadurch, dass der besagte User (michael) offensichtlich nicht korrekt erkannt wird (?). Dort steht anders als bei den erfolgreichen Usern nicht der Username sondern nobody.
Code: Select all
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "PASS (hidden)" 230 &b
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "SYST" 215 &b
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "FEAT" 211 &b
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "PWD" 257 &b
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "TYPE A" 200 &b
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "PASV" 227 &b
84.131.182.15 morph [25/Nov/2005:19:33:10 +0100] "LIST -al" 226 &b
84.131.182.15 morph [25/Nov/2005:19:33:15 +0100] "QUIT" 221 &b
84.131.182.15 nobody [25/Nov/2005:19:36:33 +0100] "USER michael" 331 &b
84.131.182.15 nobody [25/Nov/2005:19:36:36 +0100] "PASS (hidden)" 530 &b
Code: Select all
# Uncomment this if you would use quota module:
#Quotas on
# Uncomment this if you would use ratio module:
#Ratios on
# Port 21 is the standard FTP port.
Port 21
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# chroot für alle User der Gruppe ftpuser
DefaultRoot ~ ftpuser
# Login nur von Mitgliedern der Gruppe ftpuser erlauben
<Limit LOGIN>
DenyGroup !ftpuser
</Limit>
# Root-Login verbieten und gültige Shell verlangen (in /etc/shells)
<Global>
RootLogin off
RequireValidShell on
</Global>
# Speed erhöhen
UseReverseDNS off
IdentLookups off
# Loggin Formate
LogFormat default "%h %1 %u %t "%r" %s &b"
LogFormat auth "%v [%P] &h &t "%r" %s"
LogFormat write "%h %1 %u %t "%r" %s %b"
# Logging aktivieren
ExtendedLog /var/log/ftp_auth.log AUTH auth
# file/dir Zugriff
ExtendedLog /var/log/ftp_access.log WRITE,READ write
# für paranoide (vorsicht, erzeugt grosse Logfiles)
Extendedlog /var/log/ftp_paranoid.log ALL default
Gruß,
Homix