1 |
David W Noon <dwnoon@××××××××.com> [11-03-05 15:43]: |
2 |
> On Sat, 05 Mar 2011 10:40:01 +0100, meino.cramer@×××.de wrote about |
3 |
> [gentoo-user] spamd and user nobody, sa-learn: |
4 |
> |
5 |
> [snip] |
6 |
> >I tried |
7 |
> > |
8 |
> > sudo -u nobody sa-learn --spam |
9 |
> > --dbpath /etc/mail/nobody/.spamassassin/ --dir . |
10 |
> > |
11 |
> >as user mccramer but it complains with: |
12 |
> >"Sorry, user mccramer is not allowed to execute '/usr/bin/sa-learn |
13 |
> >--spam --dbpath /etc/mail/nobody/.spamassassin/ --dir .' as |
14 |
> >nobody:nobody on solfire." |
15 |
> > |
16 |
> >/etc/sudoers is set to allow this for mccramer. |
17 |
> > |
18 |
> >What is the trick to accomplish what is wanted here ? |
19 |
> |
20 |
> I need to specify the full path to the executable, /usr/bin/sa-learn, |
21 |
> when I use sudo to run it as amavis. [Note that I use Spamassassin as |
22 |
> part of Postfix via the amavisd-new daemon. I also have my Bayes |
23 |
> tokens in a PostgreSQL database. So my sa-learn command looks rather |
24 |
> different from yours anyway.] |
25 |
> -- |
26 |
> Regards, |
27 |
> |
28 |
> Dave [RLU #314465] |
29 |
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |
30 |
> dwnoon@××××××××.com (David W Noon) |
31 |
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |
32 |
|
33 |
Hi Dave, |
34 |
|
35 |
no luck...the problem remains the same with or without the full |
36 |
path... |
37 |
|
38 |
How can I fix it? |
39 |
|
40 |
Best regards |
41 |
mcc |