- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to check user activity?
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
11-19-2001 07:42 AM
11-19-2001 07:42 AM
How to check user activity?
I have a little problem on HP-UX.
I must check the user activity.
Is there a file (or a command) that I can control to understand the operation that the users do on my HP-UX server?
Thanks in advance for your help and your support.
Best regards,
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 07:44 AM
11-19-2001 07:44 AM
Re: How to check user activity?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 07:45 AM
11-19-2001 07:45 AM
Re: How to check user activity?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 07:46 AM
11-19-2001 07:46 AM
Re: How to check user activity?
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 07:47 AM
11-19-2001 07:47 AM
Re: How to check user activity?
Use:
# last
...for historical reporting
# who -u
...for currently logged-on account information
See the man pages for 'last'. If /var/adm/wtmp does not exist, touching this file will enable the recording of the "last" user login information. Unsuccesful logins are correspondingly captured in /var/adm/btmp if that file is present, and queried with 'lastb'.
Both files will grow without bounds and can be nulled with:
cat /dev/null > /var/adm/wtmp
cat /dev/null > /var/adm/btmp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:00 AM
11-19-2001 08:00 AM
Re: How to check user activity?
Take a look at the thread below,
http://us-support.external.hp.com/cki/bin/doc.pl/sid=c8e3e5bd0a556ac3bb/screen=ckiDisplayDocument?docId=200000057441905
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:05 AM
11-19-2001 08:05 AM
Re: How to check user activity?
One way is to add 'script' to your /etc/profile for the users you want to monitor. Like this:
USERNAME=`who am i | awk "{ print $1 }"
date >>$path_to_logfile/script.$USERNAME
exec script -a /path_to_logfile/script.$USERNAME
This will create a file named "script.your_user_name" in the directory you specify with everything typed by your users (and also the screens they saw). Remember to clean this file from time to time, since it can grow really fast. Also, notice your users can (by default) delete this file. You have to take measures to avoid it (if that's the case).
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:07 AM
11-19-2001 08:07 AM
Re: How to check user activity?
:)
On my answer above, please fix this line:
USERNAME=`who am i | awk "{ print $1 }"`
Notice the closing backtick operator! :)
Regards
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:10 AM
11-19-2001 08:10 AM
Re: How to check user activity?
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:12 AM
11-19-2001 08:12 AM
Re: How to check user activity?
One other tool which you will find useful would be lsof, which would allow you to in particular:
1) identify the currently opened files of a user's processes
2) identify the current network connections of a user's processes
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:12 AM
11-19-2001 08:12 AM
Re: How to check user activity?
Easiest way is to set HISTORY for their accounts. Go into $HOME/.profile of each
user and set
HISTFILE=$HOME/.sh_history
HISTSIZE=1024 (default size in Kb)
Then, whenever you want you can peer at this file to see the commands they executed.But remember it can be deleted by the user itself! ;-)
To know what a user is running at any time:
do ps -ef |grep userid
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:40 AM
11-19-2001 08:40 AM
Re: How to check user activity?
In addition, if you want to monitor system calls and operations, you will need to convert HP-UX to trusted mode and enable auditing for this particular user.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com