tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Frederick Leung <fleun@doh.health.nsw.gov.au>
Subject: error msg from cron
Date: Mon, 02 Feb 2004 15:40:46 +1100	[thread overview]
Message-ID: <3.0.32.20040202154046.00ddf378@mouse.ccf.health.nsw.gov.au> (raw)

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


                 reply	other threads:[~2004-02-02  4:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox