Found the an article from sun and did:
- Type touch /var/adm/loginlog and press Return.
- Type chmod 700 /var/adm/loginlog and press Return.
- Type chgrp sys /var/adm/loginlog and press Return.
Also edited /etc/syslog.conf and added:
auth.notice;auth.crit;auth.info /var/adm/loginlog
Restarted syslog service:
svcadm disable svc:/system/system-log:default
svcadm enable svc:/system/system-log:default
Still nothing in loginlog.
Any ideas?
Carl
You have given write access ONLY to root. I somehow doubt that user
logins are running as root!
/var/adm/login log is a system ( root) monitoring process. Users
logins shouldn't be writing
to it. I'm assuming that it takes the place of /var/adm/messages ( or
something like
that) which only root writes to.
/var/adm/login log is a system ( root) monitoring process. Users
/var/adm/login log is a system ( root) monitoring process. Users
Hi Carl,
Only the first 3 steps above should be required to log failed login
attempts,
according to our documentation, here:
http://docs.sun.com/app/docs/doc/816-4557/secsys-1?a=view
However, I see that loginlog entries are only written after the fifth
failed attempt,
like this:
# more /var/adm/loginlog
cindys:/dev/pts/3:Wed Oct 21 14:04:52 2009
cindys:/dev/pts/3:Wed Oct 21 14:05:02 2009
cindys:/dev/pts/3:Wed Oct 21 14:05:12 2009
cindys:/dev/pts/3:Wed Oct 21 14:06:11 2009
cindys:/dev/pts/3:Wed Oct 21 14:06:22 2009
This behavior is described in the doc section:
The loginlog file contains one entry for each failed attempt. Each
entry contains the user's login name,
tty device, and time of the failed attempt. If a person makes fewer
than five unsuccessful attempts,
no failed attempts are logged.
Cindy
Cindy,
Thanks for the info but I forgot an important piece of info in my
post.
I want to track failed ssh logins. I know that they were being tracked
in my /var/adm/auth_audit log. But I want the faillures to go to /var/
adm/loginlog instead.
Can loginlog track these ?
Carl
Hi Carl,
I don't think loginlog is robust enough to log failed ssh attempts.
The loginlog man page was last updated in 1990 so I don't think that
it is compatible with ssh.
Cindy
Perhaps this post can point you in the right direction:
http://forums.sun.com/thread.jspa?threadID=5073829
Juan