- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User Commands
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
07-18-2008 04:46 AM
07-18-2008 04:46 AM
I want to trap what commands a team member is issuing after he su's to root. I can look at history but I dont think it shows me all the commands that all sessions have been issuing. Is there a way to see what commands they issue after su'ing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2008 05:09 AM
07-18-2008 05:09 AM
Re: User Commands
So probably sudo for each command is a way to track things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2008 05:47 AM
07-18-2008 05:47 AM
Re: User Commands
It works kind of like sudo, but it does have keystroke logging capabilities.
More information on PowerPassword here:
http://www.symark.com/products/ppoverview.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2008 05:53 AM
07-18-2008 05:53 AM
Re: User Commands
The product that does things similar to what you require is actually PowerBroker, NOT PowerPassword as I said above..
More info here:
http://www.symark.com/products/pboverview.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2008 11:49 PM
07-18-2008 11:49 PM
SolutionAs said Powerbroker is a good tool for this. The Pbreplay of Powerbroker can be used to playback the keystroke sessions of root.
You can use the below script which would give you the last 10 lines (tail default) of the history files of the users who used su today (only today). You can just fine tune it according your needs. May be someone can fine tune more logical one based on this.
#!/sbin/sh
TDATE=" `date +'%m/%d'`"
for TUSER in `grep $TDATE /var/adm/sulog| awk ' /root$/ {print $NF}'|cut -d\- -f1|grep -v root`
do
echo ====================================
echo $TDATE
echo $TUSER
echo ====================================
tail ~$TUSER/.sh_history
echo ====================================
sleep 2
done
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2008 01:37 AM
07-21-2008 01:37 AM
Re: User Commands
Keon Boks is very good for this
Regards
Sanjeev