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 1Pw2H0-00038b-Oc for garchives@archives.gentoo.org; Sun, 06 Mar 2011 00:56:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E0A41C001; Sun, 6 Mar 2011 00:55:15 +0000 (UTC) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by pigeon.gentoo.org (Postfix) with SMTP id F2F071C001 for ; Sun, 6 Mar 2011 00:55:14 +0000 (UTC) Received: (qmail invoked by alias); 06 Mar 2011 00:55:13 -0000 Received: from p5485196C.dip0.t-ipconnect.de (EHLO gmx.net) [84.133.25.108] by mail.gmx.net (mp023) with SMTP; 06 Mar 2011 01:55:13 +0100 X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX1+N8K0yxEqNaBjQlCUMLxCJ63p/Pi0V0Hk+akStSE bLtPXj4+mB1/+b Received: by gmx.net (nbSMTP-1.00) for uid 1001 Meino.Cramer@gmx.de; Sun, 6 Mar 2011 01:55:13 +0100 (CET) Date: Sun, 6 Mar 2011 01:55:13 +0100 From: meino.cramer@gmx.de To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] spamd and user nobody, sa-learn Message-ID: <20110306005513.GA5992@solfire> References: <20110305142052.2c8275dd@karnak.local> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110305142052.2c8275dd@karnak.local> User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 X-Archives-Salt: X-Archives-Hash: 8d6e1e38dd4f3a36ab98d018895cecc4 David W Noon [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