-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Woodford
Sent: Thursday, June 09, 2005 9:27 AM
To: 'ClamAV users ML'
Subject: RE: [Clamav-users] ERROR: Clamuko: Can't register with Dazuko

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Samuel Benzaquen
Sent: Wednesday, June 08, 2005 5:21 PM
To: ClamAV users ML
Subject: RE: [Clamav-users] ERROR: Clamuko: Can't register with Dazuko



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Scott 
> Woodford
> Sent: Wednesday, June 08, 2005 3:55 PM
> To: 'ClamAV users ML'
> Subject: RE: [Clamav-users] ERROR: Clamuko: Can't register with Dazuko
>
>
> Tim, not a problem.  Been a long day for me too, so I know how ya feel.
>
> I'd love to just replace that code and use it, but that doesn't seem 
> to work for me.  All I want is a message box popping up, telling the 
> user that a virus was found.  I've even tried "VirusEvent echo %v", 
> which is a pretty simple, but that's not working either.  I hate being 
> a newbie.
>

You could use xmessage to show a message in a window on X.

For example:
VirusEvent xmessage Virus found: %v

I have not used xmessage for a long time, so you should read the man page
for more customization.

-Samuel

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Ok, thanks to everyone on this list, I have gotten almost everything up and
running perfectly.  I really appreciate all of your help.  I still have two
problems:

1 - I cannot get Dazuko to start automatically every time the computer boots
in RedHat 9.
2 - xmessage works great for the VirusEvent, but I can't figure out how to
use a newline character to get the text to wrap - Otherwise, I wrote a Perl
script that displays the VirusEvent message just fine, but I have no idea
how to pass "%v" to it

Thanks again for everything.



_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Well, I got the VirusEvent problem figured out.  I wrote a shell script that
I call from VirusEvent, and it works great for the root account.  Here it
is:

Title: virus_notify.sh
Location: /usr/local/bin

**************
#!/bin/sh

message="\nVIRUS '$1' FOUND !!!  Access to this file / directory has been
denied.\nYou must contact the Administrator immediately.  A note of this
virus has been\nmade in the system logs."

if ! gdialog --title 'VIRUS FOUND !!!' --msgbox "$message" 10 10; then
        sleep 10
        exit 1;
fi
**************

I call it from the VirusEvent line in clamd.conf like this: "VirusEvent
/usr/local/bin/virus_notify.sh %v" (without quotes obviously).

The problem now is that this message only gets displayed when the root
account finds a virus.  If I log in as a regular user, then it just denies
access to the file and gives an error, rather than showing me the virus
notification message.  I'm not sure if the variable
"AllowSupplementaryGroups" in clamd.conf has anything to do with it, but
either way I have enabled that.

Any ideas?


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to