- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Report with user login/logout information!
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
01-17-2003 12:47 PM
01-17-2003 12:47 PM
So far he did not specify if he reqires any more details other than login/logout information. Can some of you provide some suggestions to provide him with this information, what is the best way to extract it, and what tools if any can be used. Also, if more details will be required later on, can you forewarn me about what may need to be setup (I know accounting will be a requirement to collect specific event information, but in order to do that we have to convert the system into trusted mode).
Thanks for any suggestions!
System specs: RP5470 with HP-UX 11.0 including Glance Plus and HP-Openview MeasureWare Agent (for this system, but there will also be another system for which he has requested the same information that I don't think has these tools).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 12:50 PM
01-17-2003 12:50 PM
Re: Report with user login/logout information!
last >/tmp/somefile
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 12:54 PM
01-17-2003 12:54 PM
SolutionTHe simplest report can be generated with 'last' for good logins; 'lastb' for failed ones. See the man pages for 'last' for more information.
If '/var/adm/wtmp' (for 'last') or '/var/adm/btmp' for 'lastb') don't exist, simply 'touch' them to create them. The absence of the files turns off the reporting.
Keep the permissions of /var/adm/btmp readable only by root. It is a security risk to allow anyone to read it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 12:57 PM
01-17-2003 12:57 PM
Re: Report with user login/logout information!
last -R will give you information about successful logins including the where they logged in from. lastb -R is the corresponding command for unsuccessful attempts.
You may want to write a script and put it in cron and mail it to you and yourboss to make it automated. You will have to deal with manipulating the dates though. Search this site and you may find couple of scripts.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 01:13 PM
01-17-2003 01:13 PM
Re: Report with user login/logout information!
Next, start it: /sbin/init.d/acct start
(I suggest adding a umask statement to the /usr/sbin/acct/startup script before starting this).
Accounting can generate daily reports, which I think is what your boss will want. (It will show just one entry for each user with their last login date). You can also look at the command issued by each user. Look at the man pages for acct and acctcom.
- Chris