- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tracking user login
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
Forums
Discussions
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
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
02-16-2001 02:23 PM
02-16-2001 02:23 PM
Tracking user login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 02:32 PM
02-16-2001 02:32 PM
Re: Tracking user login
Yes, use 'last' (see 'man last'). If /var/adm/wtmp is present, then this file will contain a record of all logins. Do this:
# last
If /var/adm/wtmp isn't present, then you will need to first touch it to start collecting this information. Permissions should be 644 owned by root. Trim (or create) the file by redirecting /dev/null into it:
# /dev/null > /var/adm/wtmp
Bad login attempts are (corresponding) kept in /var/adm/btmp and are interrogated with 'lastb' [see same man as above].
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 02:32 PM
02-16-2001 02:32 PM
Re: Tracking user login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 02:39 PM
02-16-2001 02:39 PM
Re: Tracking user login
I did use the Last command but it only shows me
the last two days. What command can I use to see if the user has login on, say the first of
the month.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 02:48 PM
02-16-2001 02:48 PM
Re: Tracking user login
The file grows without bounds and is usually trimmed (dev/null > /var/adm/wtmp). In this case, the data you seek is gone.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 05:16 PM
02-16-2001 05:16 PM
Re: Tracking user login
You will also find records of ftp login as well as records of those who "su" and which account they "su" to in /var/adm/syslog/syslog.log.
Take care,
Josee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2001 05:58 PM
02-18-2001 05:58 PM
Re: Tracking user login
Besides the "last" command there is another option you could try,
1. Via SAM convert your system to "trusted" mode
2. Go into SAM -> auditing and security -> audited event
3. Make sure auditing is turned on, and the login event type should include both "success" and "failure" events
After all you can view the good and bad login attempts via the "view audit log" option.
Don't know why on your system the "last" command losted its historical data. It is the simplest way to achieve what you want so use this one if possible.
Rgds,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2001 06:28 AM
02-19-2001 06:28 AM
Re: Tracking user login
Read up on the man pages for runacct, pacct, and their references.
I use accounting on ALL seats. I get a monthly report on all users, each time they have logged in, for how long, what applications they ran, etc...
It's built in and free, as well as supported by HP-UX, SunOS, AIX, Irix, SCO/Unix and Linux. It gives you tons of information, most of which you wont need, but some that you do need is priceless!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2001 06:16 AM
02-20-2001 06:16 AM