- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- History of 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-19-2005 05:59 PM
07-19-2005 05:59 PM
I need to monitor commands typed by users on my ux box.
I know there is a history feature but i ve noticed several things:
1. I cannot remove write access from the user since this will result in the stopping of logging the commands.
2. user can just delete the .sh_history file before. He can also edit it.
Am I doing somthing wrong? Can this be achieved or not?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 06:29 PM
07-19-2005 06:29 PM
Re: History of commands
'man -k acct' gives an overview of the accounting commands.
There might be ways of not allowing the removal of history (remove write access on the directory containing the history file and force the usage of the same history file every time) but that won't block the editing of the file or even truncating it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 06:37 PM
07-19-2005 06:37 PM
Re: History of commands
Thanks for your reply. I am really new to this acct. Can you please explain it a bit more?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 06:51 PM
07-19-2005 06:51 PM
Re: History of commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 06:57 PM
07-19-2005 06:57 PM
Re: History of commands
anyone else has an idea about this?
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:00 PM
07-19-2005 08:00 PM
Re: History of commands
Could these links be what you are looking for?
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=218820
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=109749
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=15041
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=14568
Good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:15 PM
07-19-2005 08:15 PM
Re: History of commands
Just write "script logfile"
Now whatever they write will go into this logfile.
You can give the name of logfile in such a way that users won't recognise what is going on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:23 PM
07-19-2005 08:23 PM
Re: History of commands
I think i am a bit convinced that what i need is to setup accounting. Can anyone shed some light on the procedure of how to enable it and what are the tricks and tips for it?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 11:05 PM
07-19-2005 11:05 PM
Re: History of commands
HP-UX 10.0 System Accounting White Paper, Part 1 OALWP06950320
HP-UX 10.0 System Accounting White Paper, Part 2 OALWP07950320
These are no longer on docs.hp.com as far as I can tell.
Did find them here
http://wwwpdp.web.cern.ch/wwwpdp/as/file/hpux10/OALWP06950320.html
http://wwwpdp.web.cern.ch/wwwpdp/as/file/hpux10/OALWP07950320.html
Also the release notes explain briefly how to enable it http://docs.hp.com/en/5964-5283/ch07s01.html
Other options might be to Trust the system and enable auditing http://docs.hp.com/en/B2355-90121/ch02s05.html
With the advances in recent 11i versions, security and compartmentalization can give you some of the same functions. I recently saw some slides on this and it showed how you can assign specific users access to specific tasks/commands in great detail. http://www.hp.com/products1/unix/operating/securitycont.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 06:44 PM
07-20-2005 06:44 PM
Re: History of commands
You've been very helpfull. Just one question though. does this I cant use the accounting feature in 11i systems? or does it mean it is obsolete and replaced by trusted system?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 10:37 PM
07-20-2005 10:37 PM
SolutionAlso, the acct man page exists for 11.11 at http://docs.hp.com/en/B2355-90691/acct.1M.html
However, check out the acct man page, I don't think acct is the right solution for you. You want the history of commands, not the history of when a user logs on or off, quotas, etc.. Thats what accounting provides.
I think you are looking for auditing.