Operating System - HP-UX
1833958 Members
1862 Online
110063 Solutions
New Discussion

Re: manually executed script

 
SOLVED
Go to solution
Jonathan Grymes
Frequent Advisor

manually executed script

After I execute the script (as root) it returns Mail sent.
# ./CheckFileSystems

Sending mail...
Mail sent!
#

When I check /var/mail/root I see the following entry:
for root; Thu, 29 Nov 2007 07:21:00 -0500 (EST)
Date: Thu, 29 Nov 2007 07:21:00 -0500 (EST)
From: root@fgexsh41.vad.ws-gex.com
Message-Id: <200711291221.lATCL0612170@fgexsh41.vad.ws-gex.com>

Cron: Your job did not contain a valid audit ID.
See your system administrator.

I was able to send mail via ELM so I know that is working.

Any thoughts?

Thanks,
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: manually executed script

Shalom,

This happens sometimes when converting systems with cron authorization to trusted mode.

Fix is found:
http://docs.hp.com/en/J4269-90041/J4269-90041.pdf

Its kinda buried in that document.

Here is how cron does it:
http://www.auditnet.org/docs/HPUX.doc
http://www.adager.com/VeSoft/HpUxSecurityConcerns.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dave Hutton
Honored Contributor

Re: manually executed script

I'm not totally following this. Are you saying when you run the script manually everything is fine?

roots email you show indicates to me that it was something from cron. Anything in /var/adm/cron/log around 7:21?
Usually if cron has an issue it will email root or the user it runs as.

Anything when you type crontab -l?

The only few hits I got when searching for that error is about tsconverting your system to trusted systems. Was that recently done?

What does cat /tcb/files/auth/r/root look like?

Jonathan Grymes
Frequent Advisor

Re: manually executed script

The script is supposed to generate an email to send the results. I never receive it. The box was recently put in audit mode. I know ELM is working.

var/adm/cron/log:

> CMD: sleep 15;/etc/opt/resmon/lbin/mon_EMSHAProvider_state.sh
> root 11939 c Thu Nov 29 07:19:00 EST 2007
< root 11939 c Thu Nov 29 07:19:00 EST 2007 rc=1
> CMD: /opt/sfm/bin/restart_sfm.sh
> root 12112 c Thu Nov 29 07:20:00 EST 2007