David W Noon <dwn...@ntlworld.com> [11-03-05 15:43]:
> On Sat, 05 Mar 2011 10:40:01 +0100, meino.cra...@gmx.de wrote about
> [gentoo-user] spamd and user nobody, sa-learn:
> 
> [snip]
> >I tried 
> >    
> >    sudo -u nobody sa-learn --spam
> > --dbpath /etc/mail/nobody/.spamassassin/ --dir .
> >
> >as user mccramer but it complains with:
> >"Sorry, user mccramer is not allowed to execute '/usr/bin/sa-learn
> >--spam --dbpath /etc/mail/nobody/.spamassassin/ --dir .' as
> >nobody:nobody on solfire."
> >
> >/etc/sudoers is set to allow this for mccramer.
> >
> >What is the trick to accomplish what is wanted here ?
> 
> I need to specify the full path to the executable, /usr/bin/sa-learn,
> when I use sudo to run it as amavis. [Note that I use Spamassassin as
> part of Postfix via the amavisd-new daemon.  I also have my Bayes
> tokens in a PostgreSQL database.  So my sa-learn command looks rather
> different from yours anyway.]
> -- 
> Regards,
> 
> Dave  [RLU #314465]
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> dwn...@ntlworld.com (David W Noon)
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Hi Dave,

no luck...the problem remains the same with or without the full
path...

How can I fix it?

Best regards
mcc



Reply via email to