Code: Select all
# faillog -u root
Username Failures Maximum Latest
root 0 0
Die Anzeige von last funktioniert im Ã?brigen korrekt.
Weiß jemand Rat? Das deutet ja wohl hoffentlich nicht auf ein Rootkit hin...
Grüße
Fish
Code: Select all
# faillog -u root
Username Failures Maximum Latest
root 0 0
nene, das faillog wird vom sshd nicht geschrieben; auch nicht bei UseLogin-direktive ! (wegen -f flag)Mr_Fish wrote: Weiß jemand Rat? Das deutet ja wohl hoffentlich nicht auf ein Rootkit hin...
Erwarte ich natürlich nicht. Aber über lastlog ist im Netz kaum was zu finden... In meiner login.defs ist LASTLOG_ENAB auf yes. Ansonsten steht dort noch:olfi wrote:Was erwartest du?
Das jemand mit seiner Glaskugel schaut, ob du in /etc/login.defs etwas anders eingestellt hast?
Code: Select all
DEFAULT_HOME yes
ENV_PATH /usr/local/bin:/usr/bin:/bin
ENV_ROOTPATH /sbin:/bin:/usr/sbin:/usr/bin
FAIL_DELAY 3
FAILLOG_ENAB yes
#FTMP_FILE /var/log/btmp
HUSHLOGIN_FILE /etc/hushlogins
LASTLOG_ENAB yes
LOG_UNKFAIL_ENAB no
LOGIN_RETRIES 3
LOGIN_TIMEOUT 60
MOTD_FILE /etc/motd
TTYTYPE_FILE /etc/ttytype
TTYGROUP tty
TTYPERM 0620
CHFN_AUTH yes
CHFN_RESTRICT rwh
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_WARN_AGE 7
SYSTEM_UID_MIN 100
SYSTEM_UID_MAX 499
UID_MIN 500
UID_MAX 60000
SYSTEM_GID_MIN 100
SYSTEM_GID_MAX 499
GID_MIN 1000
GID_MAX 60000
UMASK 022
USERADD_CMD /usr/sbin/useradd.local
USERDEL_PRECMD /usr/sbin/userdel-pre.local
USERDEL_POSTCMD /usr/sbin/userdel-post.local
Nein, es sagt mir leider nur:olfi wrote: Funktioniert lastb denn?
Code: Select all
# lastb
lastb: /var/log/btmp: No such file or directory
Perhaps this file was removed by the operator to prevent logging lastb info
Bei login als root schmiert meine SSH session nach der Zeile "login:" komplett ab (Putty von ner Windows Kiste). Bei login als normaler User kommt:rootmaster wrote:nene, das faillog wird vom sshd nicht geschrieben; auch nicht bei UseLogin-direktive ! (wegen -f flag)
bei rlogin, telnet, etc sollte es aber funzen ;)
mach einfach mal ein "login" in deiner session und gib ein falsches passwort für root ein.
Code: Select all
login
FATAL: cannot change permissions of TTY: Operation not permitted
/var/log/faillog existiert und wird auch immer mal geschrieben (von wem oder was auch immer), aber nicht in dem Moment eines extra ausprobierten falschen Logins...rootmaster wrote: wenn "/var/log/faillog" nicht existiert, einfach mal touchen ;)
touch /var/log/faillog && chown root:adm /var/log/faillog && chmod 640 /var/log/faillog
killall -HUP syslogd