- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- user log in and out time
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
10-24-2005 08:45 AM
10-24-2005 08:45 AM
user log in and out time
RP7410 HPUX 11.i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 08:54 AM
10-24-2005 08:54 AM
Re: user log in and out time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 08:55 AM
10-24-2005 08:55 AM
Re: user log in and out time
should show you this information
for failed login attempts, you can check
lastb | more
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:03 AM
10-24-2005 09:03 AM
Re: user log in and out time
As noted, 'last' and 'lastb' for good and for bad logins.
You need to first create these accounting files. Their absence turns off the logging.
# touch /var/adm/wtmp #...to enable 'last' logging
# touch /var/adm/btmp #...to enable 'lastb' logging of bad logins
Make sure that '/var/adm/btmp' is owned by root and readable ONLY by root. To allow non-root users to read this file may expose passwords used with login attempts.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:04 AM
10-24-2005 09:04 AM
Re: user log in and out time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:13 AM
10-24-2005 09:13 AM
Re: user log in and out time
One thing comes to mind that you can check the validity of this user's last activity, and it is only available if he/she did not login since then, is to check the modification time of the .sh_history file if it is utilized.
another method that comes to mind is a little more convoluted. Find the time logged in, find the associated telnetd/sshd process id spawned from the syslog and find the same PID getting killed/terminated again in the syslog.
But neither of the two methods are bulletproof. It is basically a crapshoot if you can find something.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:23 AM
10-24-2005 09:23 AM
Re: user log in and out time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:25 AM
10-24-2005 09:25 AM
Re: user log in and out time
lastb reads btmp.
You can't look at them directly.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:48 AM
10-24-2005 09:48 AM
Re: user log in and out time
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=749837.
More links are available by performing an itrc search for audit user.........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 09:52 AM
10-24-2005 09:52 AM