- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: display unsuccessful login attempts to user
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
09-27-2005 11:22 PM
09-27-2005 11:22 PM
display unsuccessful login attempts to user
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:27 PM
09-27-2005 11:27 PM
Re: display unsuccessful login attempts to user
If trusted then
getprpw -m ulogint "user_name" would be precise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:29 PM
09-27-2005 11:29 PM
Re: display unsuccessful login attempts to user
see man lastb
lastb -R|grep username
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:30 PM
09-27-2005 11:30 PM
Re: display unsuccessful login attempts to user
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:31 PM
09-27-2005 11:31 PM
Re: display unsuccessful login attempts to user
If '/var/adm/btmp' doesn't exist, create it:
# touch /var/adm/btmp
# chmod 600 /var/adm/btmp
This enable logging of failed logins. You can view this file with 'lastb'. A log of successful logins is similarly enabled if you create 'var/adm/wtmp'. Good logins are viewed with 'last'. See the manpages for 'last' for more information.
A second, useful log to consult is '/var/adm/sulog'. This records both the success and failure of 'su' (switch-user) operations.
Successful transitions are recorded with a "+" notation; unsucessful ones with a "-". For example:
SU 09/19 14:43 - ttyd1p1 mdiag-root
SU 09/19 14:44 + ttyd1p1 mdiag+root
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:41 PM
09-27-2005 11:41 PM
Re: display unsuccessful login attempts to user
lastb -R USERNAME
Where username is the user of which you are checking the failed logins.
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:45 PM
09-27-2005 11:45 PM
Re: display unsuccessful login attempts to user
lastb is the command with varioud options. It will display the attempts since last reset of /var/adm/btmp file.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:45 PM
09-27-2005 11:45 PM
Re: display unsuccessful login attempts to user
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:49 PM
09-27-2005 11:49 PM
Re: display unsuccessful login attempts to user
use:
/usr/sbin/acct/fwtmp
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 11:57 PM
09-27-2005 11:57 PM
Re: display unsuccessful login attempts to user
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 01:10 AM
09-28-2005 01:10 AM
Re: display unsuccessful login attempts to user
Simply check it with the lastb command ,
lastb will give all unsuccessful login attempts.
Remember, you need superuser access for lastb.
Else you need to add the read flag for others, for /var/adm/btmp
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 01:13 AM
09-28-2005 01:13 AM
Re: display unsuccessful login attempts to user
Do *not* give read-permissions to other than root, as the owner of /var/adm/btmp. To do so exposes the possibility that password information might be exposed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 11:13 PM
09-29-2005 11:13 PM
Re: display unsuccessful login attempts to user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 01:27 AM
09-30-2005 01:27 AM
Re: display unsuccessful login attempts to user
(of course, sysadmins never have this problem...) This means that by using lastb, a hacker could look for usernames that are unusual, that look like a password. Those strings were typed at the wrong prompt and therefore logged in btmp, reported by lastb. As mentioned, a Trusted system will report both the last successful and unsuccessful login as you first login, but for a 'safe' solution on a non-Trusted system, you have to write a program to get the information from a properly protected btmp file.
Bill Hassell, sysadmin