madmac wrote:
Can anyone tell me waht this error means and how to fix please.
it is in: /var/log/secure , multiple times
sorry, you must have a tty to run sudo ; TTY=unknown ; PWD=/ ;
USER=vpopmail ; COMM AND=/usr/bin/sa-learn --sync
Maybe something to do with spamassasin?
thanks
madmac
---------------------------------------------------------------------------------
Yeah. In order to sudo to vpopmail to run sa-learn from a cron job, sudo
needs to be configured to allow processes that are not attached to a
terminal to use sudo.
To change the sudo configuration,
# visudo
will put you into edit with vi on the sudo configuration file. You
should use this command to edit the sudo configuration. Find the line
that says requiretty and comment it out, as such:
#Defaults requiretty
That should fix it.
--
-Eric 'shubes'
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com