- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to log all the users activity including ro...
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
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
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
тАО04-11-2009 08:33 AM
тАО04-11-2009 08:33 AM
I want to log all the users activity.
That is i want to view what are the users has executed what commands.
is it possibel?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2009 10:26 AM
тАО04-11-2009 10:26 AM
Re: How to log all the users activity including root
export HISTFILE=$HOME/.sh_history
export HISTLINES=5000
are in your /etc/profile. This assumes that no one uses scummy csh or tcsh as a shell. There will be a file: .sh_history in each user's directory. You may have to create the root user's history one time. As root:
touch .sh_history
Be sure to make secure copies of all of these files. They must be writable by the users in order to log the commands but that means some users may erase the contents once in a while.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2009 07:29 PM
тАО04-11-2009 07:29 PM
Re: How to log all the users activity including root
You could either write a script to get the timestamp or enable auditing .
The auditing could be enabled by converting the system into trusted(/usr/lbin/tsconvert) or in Standard mode via installing
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=StdModSecExt
http://www.docs.hp.com/en/5991-1101/ch08s08.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2009 09:01 AM
тАО04-12-2009 09:01 AM
Re: How to log all the users activity including root
It is somewhat cryptic till you get use to the audit records but it is truely everything that user and their processes did.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 03:09 AM
тАО04-13-2009 03:09 AM
Re: How to log all the users activity including root
By enabling "auditing" you can track all the users activity.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 03:18 AM
тАО04-13-2009 03:18 AM
Re: How to log all the users activity including root
Built in feature.
Note, you can not locate these logs on NFS. If you do the user profile won't load.
Note also the users can by nature alter these files.
So if you don't trust a user, you will need to script a way to copy the files off once in a while and archive them.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 05:34 AM
тАО04-13-2009 05:34 AM
Re: How to log all the users activity including root
In my environment following HP-UX servers are available.
HP-UX 10.20, HP-UX 11.00 and HP-UX 11.11.
So How to enable audit in above servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 05:45 AM
тАО04-13-2009 05:45 AM
SolutionUNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 07:32 AM
тАО04-13-2009 07:32 AM
Re: How to log all the users activity including root
Adhoc monitoring allows you to pick and choose and keep a handle on the space used.
We use PowerBroker. It's not expensive, monitors;logs;can distribute controlled root privileges and more.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 09:06 AM
тАО04-13-2009 09:06 AM
Re: How to log all the users activity including root
In order to enable auditing on those systems you need to be in trusted mode.
1. Convert the system to trusted mode (in sam)
2. Sam -> auditing
then you specify what users or system calls or functions you want to audit.
It might be under routine tasks.
Suggest you check this on a test system. Converting to trusted mode is not a trivial thing to do and may cause apps that read /etc/passwd directly to break.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 08:12 PM
тАО04-13-2009 08:12 PM
Re: How to log all the users activity including root
From command prompt you can enable the auditing but the best option is from SAM
Suraj