1832577 Members
3188 Online
110043 Solutions
New Discussion

login error log

 
Matt Rieman
Contributor

login error log

Our HP-UX 11.00 system is setup to lock out user accounts when they attempt 3 unsuccessful logins. Is there a file that logs this information, and if so, where is it located?

Thanks,

Matt
5 REPLIES 5
Steve Steel
Honored Contributor

Re: login error log

Hi


see man last


last, lastb - indicate last logins of users and ttys


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: login error log

You are on trusted system. Right??
The information about lock status is
retrieved as follows.

/usr/lbin/getprpw -m lockout "user_name"
The status is as follows.

1 past password lifetime
2 past last login time (inactive account)
3 past absolute account lifetime
4 exceeded unsuccessful login attempts
5 password required and a null password
6 admin lock
7 password is a *

man getprpw

anil
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor

Re: login error log

We can audit bad login informations using lastb command.

On non-trusted systems,

We have to write a script to check weather the user DID 3 bad logins at related time and date informations there. IF so lock that uer account with passwd -l


On Trusted systems,

Use RAC solutions there.

HTH.
Easy to suggest when don't know about the problem!
Bill Hassell
Honored Contributor

Re: login error log

Here is a script that gives extensive details about one or more user accounts. It makes use of the getprpw command and other tools.


Bill Hassell, sysadmin