- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Failed Logins not going to /var/adm/btmp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 01:04 AM
12-26-2006 01:04 AM
I was under the impression that any failed login attempt was recorded in this file. If I use last -10, I get the most recent successful logins and the date on /var/adm/wtmp is current so I know that's working correctly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 01:20 AM
12-26-2006 01:20 AM
Re: Failed Logins not going to /var/adm/btmp
Your btmp database is corrupt, which isn't a big deal. You have two options:
1) If you don't care about preserving previous bad login attempts, you can zero out /var/adm/btmp:
# cat /dev/null > /var/adm/btmp
2) If you want to try to preserve previous bad login attempts, you will need to make use of the 'fwtmp' command:
# /usr/sbin/acct/fwtmp < /var/adm/btmp > /tmp/btmp.tmp
# vi /tmp/btmp.tmp # Clean up records
# /usr/bin/acct/fwtmp -ic < /tmp/btmp.tmp > /var/adm/btmp
# rm /tmp/btmp.tmp
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 01:58 AM
12-26-2006 01:58 AM
Re: Failed Logins not going to /var/adm/btmp
Its important for auditing purposed to immediatly re-stablish this file. If you follow the procedure in the prior post(recommended), thats good.
Otherwise > /var/adm/btmp
Then do a bad login and see that it gets logged.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 02:06 AM
12-26-2006 02:06 AM
Re: Failed Logins not going to /var/adm/btmp
Thanks for you help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 05:45 AM
12-26-2006 05:45 AM
Re: Failed Logins not going to /var/adm/btmp
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 05:52 AM
12-26-2006 05:52 AM
Re: Failed Logins not going to /var/adm/btmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 05:52 AM
12-26-2006 05:52 AM
Re: Failed Logins not going to /var/adm/btmp
Also swlist says the server is on A.03.61.002 HP-UX Secure Shell. I looked through the release notes and noticed that A.03.71.000 includes logging to btmp and fixes the problem with wtmp showing everyone still logged in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 06:02 AM
12-26-2006 06:02 AM
Re: Failed Logins not going to /var/adm/btmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 06:10 AM
12-26-2006 06:10 AM
Solutionhttp://docs.hp.com/en/T1471-90014/ch01s04.html
You can download the latest rev and test it out for your environment.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2006 03:21 PM
12-26-2006 03:21 PM
Re: Failed Logins not going to /var/adm/btmp
This was a know bug before ssh 3.91. See below link.
http://docs.hp.com/en/T1471-90014/ch01s04.html
Try to update your ssh with latest version (atleast 3.91 or above).
This will solve your problem.
Samir