Operating System - HP-UX
1753784 Members
7106 Online
108799 Solutions
New Discussion юеВ

Failed logins going to /var/adm/wtmp

 
Eric Lam
Occasional Advisor

Failed logins going to /var/adm/wtmp

Dear all,

I've a K-class server which running HPUX 11.0 in trusted mode. I am using modprpw to control account enable or disable by alock. I've a problem when a user tried login, even the account is locked, "last" still logged but not in "lastb". Anyone know why?
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Failed logins going to /var/adm/wtmp

Shalom,

This is probably happening due to previous system configuration.

See if the btmp file is there. If not, touch the file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Godron
Honored Contributor

Re: Failed logins going to /var/adm/wtmp

Eric,
all I can add to Stevens answer is that the permissions should be 600

# touch /var/adm/btmp
# chmod 600 /var/adm/btmp
Eric Lam
Occasional Advisor

Re: Failed logins going to /var/adm/wtmp

Dear all,

btmp and wtmp are located in /var/adm correctly. And I've archive them periodically. I don't know why when an account prompted "account is disabled" during login, but "last" still logged it to wtmp but not into btmp.