public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: meino.cramer@gmx.de
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] spamd and user nobody, sa-learn
Date: Sun, 6 Mar 2011 01:55:13 +0100	[thread overview]
Message-ID: <20110306005513.GA5992@solfire> (raw)
In-Reply-To: <20110305142052.2c8275dd@karnak.local>

David W Noon <dwnoon@ntlworld.com> [11-03-05 15:43]:
> On Sat, 05 Mar 2011 10:40:01 +0100, meino.cramer@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]
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> dwnoon@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	other threads:[~2011-03-06  0:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gsW7T-4OU-15@gated-at.bofh.it>
2011-03-05 14:20 ` [gentoo-user] spamd and user nobody, sa-learn David W Noon
2011-03-06  0:55   ` meino.cramer [this message]
     [not found] <gtpMB-4Sc-5@gated-at.bofh.it>
     [not found] ` <gtpMB-4Sc-7@gated-at.bofh.it>
     [not found]   ` <gtpMB-4Sc-9@gated-at.bofh.it>
     [not found]     ` <gtpMB-4Sc-3@gated-at.bofh.it>
     [not found]       ` <gtqpk-5MA-15@gated-at.bofh.it>
2011-03-06 18:34         ` David W Noon
     [not found] <gt0Ey-44v-19@gated-at.bofh.it>
     [not found] ` <gt0Ey-44v-17@gated-at.bofh.it>
     [not found]   ` <gtaue-3U8-21@gated-at.bofh.it>
2011-03-06 17:07     ` David W Noon
2011-03-06 17:47       ` meino.cramer
2011-03-05  9:28 meino.cramer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110306005513.GA5992@solfire \
    --to=meino.cramer@gmx.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox