Hello Kevin O'C,

> could not launch xmessage as clamav user - xauth
> permission error as predicted by Stephen - clamav
> group membership cannot provide permission required -
> root user only. i don't have to use xmessage - just
> want something to notify users in x session (popup)
> that a virus has been detected. security concerns
> aside, should i try running clamd daemon as root and
> how do i do this?

First of all, you need to tell xmessage where it should connect to
(hint: set the DISPLAY variable to :0.0)

Then you need to give xmessage permission to connect to that X session.
Either you allow _any_ program running on localhost (hint: security risk!) 
to connect to X with:

$ xhost +localhost

inside X, or you use xauth:

# su $LOGNAME -c  "xauth extract - $DISPLAY" | xauth merge -

where $LOGNAME is the user under which X is running and $DISPLAY 
most likely is :0.0 .

man xauth for more info. 
You probably need to wrap everything inside a script...

This has nothing to do with ClamAV, please ask somewhere else for more
info.

Best regards

-- 
Luca Gibelli (luca at clamav.net) - ClamAV, a GPL virus scanner
PGP Key Fingerprint: C782 121E 8C3A 90E3 7A87  D802 6277 8FF4 5EFC 5582
PGP Key Available on: Key Servers || http://www.clamav.net/gpg/luca.gpg
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to