- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Replace command with my script
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-09-2004 05:55 AM
11-09-2004 05:55 AM
Replace command with my script
I need replace command kill with other script.
New script kill must generate kill.log with information of user,date.
Regards
Rene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 06:04 AM
11-09-2004 06:04 AM
Re: Replace command with my script
What you have to do is convert your system to trusted mode and start auditing. And now set up auditing for kill and raise system calls.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 06:12 AM
11-09-2004 06:12 AM
Re: Replace command with my script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 09:44 AM
11-09-2004 09:44 AM
Re: Replace command with my script
This whole exercise seems a bit wrong-headed in that ordinary users should only be able to kill (more properly signal) their own processes; if you have root users who are killing processes then you have a bigger problem. If you must do it, a simple shell wrapper for /usr/bin/kill is straightforward but any super-user can easily hide their tracks and if they are not super-user's then they can't kill the process anyway --- unless they own it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 12:58 PM
11-09-2004 12:58 PM
Re: Replace command with my script
In addition to the responses above, it is not a good idea to replace the commands with scripts. A user can always find the original command (for ex., after writing the wrapper script, you may move the command 'kill' as 'bla' and specify it in your script) and use it. Also, when you install patches later, they can put the new version of commands back in place.
This is only possible if you use tools like eTrust access control, powerbroker etc.,But they may be too much for just your requirement.
-Sri