error msg from cron

From: Frederick Leung (fleun@doh.health.nsw.gov.au)
Date: Sun Feb 01 2004 - 23:40:46 EST


Hello Managers,
         
I am running T64 V5.1A on an alpha.

Problem:
 when the cron daemon encounters a script not-found error in any
 users' crontab, it sends out a notification message with the sender
 always originated from a particular user (joeblogg
 for instance) instead of from the superuser 'root'

 Sample message below :-
 ______________________________________________________
 | From: Joe Blogg <joeblogg@machine1.efg.au> <== incorrect
 | To: systemAdm@central.poffice.efg.au
 |
 | sh: /usr/users/joeblogg/testyyyyy: not found
 |
 | *************************************************
 | Cron: The previous message is the standard output
 | and standard error of the following crontab command:
 |
 | /usr/users/joeblogg/testyyyyy
 |______________________________________________________

  ie. the expected above 'From' field should be :-
     ==> From: system PRIVILEGED account <root@machine1.efg.au>

  Any idea where is the setup for cron daemon to send
  out email messages when encountering errors?

  For debugging purpose, if the above testyyyyy do exists and
   anything emailed out from the scripts, it will have the right
   user's name as the message sender (ie depends on whose crontab
   cron is running)
       
  I've checked files from
         /var/adm/sendmail/{*.cf, *.m4}
         /etc/{hosts,rc.config,syslog.conf}
  they all appears as normal (when compared to other machines
  that works correctly)
  The particular user (jobblogg in this case ) is never used
  anywhere in any related system files I could think of
  (except in the /etc/passwd). joeblogg is also not owner of any
  system binaries or files.

##############

Thanks in advance for any suggestion.
fred
system administration



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:50 EDT