eTrust Virus Scanner

Hancock, Scott HancockS at MORGANCO.COM
Tue Sep 16 19:06:39 IST 2003


Let me answer my own question...

bambam:~# su mail
bambam:/root$ sudo /home/scott/scripts/EtrustSudo-autoupdate

**************************
syslog
Sep 16 09:53:01 bambam /USR/SBIN/CRON[3242]: (mail) CMD (  if [ -x
/usr/lib/exim/exim3 -a -f /etc/exim/exim.conf ]; then
/usr/lib/exim/exim3 -q ; fi)
Sep 16 09:56:59 bambam eTrust-autoupdate[3258]: eTrust updated

**************************
With the script /home/scott/scripts/EtrustSudo-autoupdate:

-
bambam:~# less /home/scott/scripts/EtrustSudo-autoupdate
LD_LIBRARY_PATH=/opt/eTrustAntivirus/secu/lib:/opt/eTrustAntivirus/ino/c
onfig:/opt/eTrustAntivirus/ino/lib;
export LD_LIBRARY_PATH
CAIGLBL0002=CACRITMON; export CAIGLBL0002
CAIGLBL0000=/opt/eTrustAntivirus; export CAIGLBL0000
CAIUNIDB=caiunidb; export CAIUNIDB
CAIGLBL0006=CASNMPMGR; export CAIGLBL0006
CA_CAILANGUAGE=enu; export CA_CAILANGUAGE
CAI_CAMSGF_OPRDIRECT=; export CAI_CAMSGF_OPRDIRECT
CAI_DATEFMT=MMM-DD-YYYY; export CAI_DATEFMT
CA_REPORT=/opt/eTrustAntivirus/report; export CA_REPORT
CAPB_PATH=/opt/eTrustAntivirus/prb/config; export CAPB_PATH
CA_CAIMESSAGE=/opt/eTrustAntivirus/messages/american; export
CA_CAIMESSAGE

/opt/MailScanner/lib/etrust-autoupdate
*****************************
And sudoers:

User_Alias      MAIL = mail
Runas_Alias     ROOT = root
Host_Alias      LOCALHOST = bambam.morganco.com
#Cmnd_Alias      ETRUST = /opt/eTrustAntivirus/ino/bin/inocmd32
Cmnd_Alias      ETRUST = /home/scott/scripts/EtrustSudo
Cmnd_Alias      ETRUSTUPDATE = /home/scott/scripts/EtrustSudo-autoupdate
Defaults        mailto = you at yourdomain.com


MAIL  LOCALHOST = (ROOT) NOPASSWD: ETRUST
MAIL  LOCALHOST = (ROOT) NOPASSWD: ETRUSTUPDATE
******************************

So I guess the best implementation would be to soft link
/opt/Mailscanner/lib/etrust-autoupdate to the script and rename the
original?

Thanks again

-Scott




 >-----Original Message-----
 >From: Hancock, Scott
 >Sent: Tuesday, September 16, 2003 1:52 PM
 >To: MAILSCANNER at JISCMAIL.AC.UK
 >Subject: Re: eTrust Virus Scanner
 >
 >Kevin,
 >
 >Dare I ask if the etrust-autoupdate script runs under 'mail' via
 >mailscanner as well?
 >
 >
 >Scott
 >
 >
 >>Subject: Re: eTrust Virus Scanner
 > >
 > >I think you did it!  The environment variable script worked.




More information about the MailScanner mailing list