- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to trace who/what ran a 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
06-14-2005 03:12 AM
06-14-2005 03:12 AM
I need to find out who/what started a script from /usr/local/bin.
From syslog I can see the following:
Jun 12 09:49:13 my_box su: + 2 root-oracle
Jun 12 10:50:24 my_box su: + 2 root-oracle
Jun 12 11:10:20 my_box su: + 2 root-oracle
Jun 12 11:15:05 my_box su: + 2 root-oracle
Jun 12 11:23:10 my_box above message repeats 2 times
Jun 12 11:27:26 my_box diagmond[1573]: Exit due to user requested abort
Jun 12 11:28:33 my_box DB_NAME-repserv.sh-23797[1289]: Start of repserv.sh-23797 run
.
Jun 12 11:28:34 oms063 DB_NAME-repserv.sh-23797[1311]: End of repserv.sh-23797 run.
Exit return value is 0
Jun 12 11:28:35 my_box syslogd: going down on signal 15
System was rebooted at 11:28 by SysAdmin, but he did not start the script.
history, /etc/rc.log or shtdownlog do not show anything.
Appreciate your help,
Olga
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 03:25 AM
06-14-2005 03:25 AM
Re: How to trace who/what ran a script?
if you dont have a log-file I will suggest to create a log-file for future reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 03:45 AM
06-14-2005 03:45 AM
Re: How to trace who/what ran a script?
Cron log shows last entry at 11:25, and it is not the script
Any other ideas?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 04:07 AM
06-14-2005 04:07 AM
Re: How to trace who/what ran a script?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 04:23 AM
06-14-2005 04:23 AM
Re: How to trace who/what ran a script?
If you prevent direct root logins, you can have more logging as to who became root to do the execution.
If many people have root, take it away from as many as you can
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 07:17 PM
06-14-2005 07:17 PM
Re: How to trace who/what ran a script?
The other option is if they ssh'd in there maybe some records in your syslog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 10:40 PM
06-14-2005 10:40 PM
Re: How to trace who/what ran a script?
I was just thinking if .sh_history file can help. But you need to search through the possible users who can log in. Because it would be difficult if you have many users. Also check if you have auditing enabled.
Cheers !!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 05:29 AM
06-15-2005 05:29 AM
Re: How to trace who/what ran a script?
dba ran this script with nohup few months ago, then interrupted it, I guess with Ctrl+C. It was STOPPED and recent reboot triggerred it ....