Gentoo Archives: gentoo-user

From: David W Noon <dwnoon@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] spamd and user nobody, sa-learn
Date: Sat, 05 Mar 2011 14:23:00
Message-Id: 20110305142052.2c8275dd@karnak.local
1 On Sat, 05 Mar 2011 10:40:01 +0100, meino.cramer@×××.de wrote about
2 [gentoo-user] spamd and user nobody, sa-learn:
3
4 [snip]
5 >I tried
6 >
7 > sudo -u nobody sa-learn --spam
8 > --dbpath /etc/mail/nobody/.spamassassin/ --dir .
9 >
10 >as user mccramer but it complains with:
11 >"Sorry, user mccramer is not allowed to execute '/usr/bin/sa-learn
12 >--spam --dbpath /etc/mail/nobody/.spamassassin/ --dir .' as
13 >nobody:nobody on solfire."
14 >
15 >/etc/sudoers is set to allow this for mccramer.
16 >
17 >What is the trick to accomplish what is wanted here ?
18
19 I need to specify the full path to the executable, /usr/bin/sa-learn,
20 when I use sudo to run it as amavis. [Note that I use Spamassassin as
21 part of Postfix via the amavisd-new daemon. I also have my Bayes
22 tokens in a PostgreSQL database. So my sa-learn command looks rather
23 different from yours anyway.]
24 --
25 Regards,
26
27 Dave [RLU #314465]
28 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
29 dwnoon@××××××××.com (David W Noon)
30 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] spamd and user nobody, sa-learn meino.cramer@×××.de