Operating System - HP-UX
1835542 Members
2767 Online
110078 Solutions
New Discussion

Re: Failed login log locations?

 
SOLVED
Go to solution
Craig A. Sharp
Super Advisor

Failed login log locations?

Where does HPUX 11.0 keep logs of failed login attempts. I have nothing going to the syslog. I see all logins in btmp.

Also does anyone have a script to page the admin when there is a failed login attempt.

Thanks,

Craig Sharp
Roush Industries
2 REPLIES 2
Rob Smith
Respected Contributor
Solution

Re: Failed login log locations?

Hi, the command lastb, if you use the -R switch it will tell you where the attempt is coming from, will give you a list of bad logins. Bad login attempts are logged in /var/adm/btmp. Make sure that file is readable only by root because sometimes it contains passwords. Hope this helps.

Rob

lastb -R | head <=== For the last 10 bad attempts.

lastb -R root <=== To see all bad attempts as root.
Learn the rules so you can break them properly.
Craig A. Sharp
Super Advisor

Re: Failed login log locations?

Excellent answer, thank you. That was what I needed. Now I need to find a way to be notified of a failed login attempt.

Craig