From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PvsNo-0006qH-0B for garchives@archives.gentoo.org; Sat, 05 Mar 2011 14:23:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B09CE1C012; Sat, 5 Mar 2011 14:21:14 +0000 (UTC) Received: from karnak.local (cpc2-lutn10-2-0-cust603.9-3.cable.virginmedia.com [81.97.90.92]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B8161C012 for ; Sat, 5 Mar 2011 14:21:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id 5F80C3003 for ; Sat, 5 Mar 2011 14:21:13 +0000 (GMT) X-Virus-Scanned: by amavisd-new using ClamAV at karnak.local Received: from karnak.local ([127.0.0.1]) by localhost (karnak.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mfDtYn978K0n for ; Sat, 5 Mar 2011 14:21:11 +0000 (GMT) Received: from karnak.local (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id 6C69A3002 for ; Sat, 5 Mar 2011 14:21:11 +0000 (GMT) Date: Sat, 5 Mar 2011 14:20:52 +0000 From: David W Noon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] spamd and user nobody, sa-learn Message-ID: <20110305142052.2c8275dd@karnak.local> In-Reply-To: References: Organization: Luton Operatic Society X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/IkSuqj/ddayh7iZivjEuwYi"; protocol="application/pgp-signature" X-Archives-Salt: X-Archives-Hash: acbfa59edffe15833ede5be7d90a236a --Sig_/IkSuqj/ddayh7iZivjEuwYi Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=20 > =20 > 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.] --=20 Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwnoon@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* --Sig_/IkSuqj/ddayh7iZivjEuwYi Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk1yRtcACgkQc9/LpQ70v48xOgCgnypI134x+wYg1puID8qxf983 ztEAnAtjRiqt1mVkX+LSm3RUetUAciu8 =vbol -----END PGP SIGNATURE----- --Sig_/IkSuqj/ddayh7iZivjEuwYi--