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 1Pwnnm-0007zo-Ie for garchives@archives.gentoo.org; Tue, 08 Mar 2011 03:41:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11E451C051; Tue, 8 Mar 2011 03:40: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 817431C051 for ; Tue, 8 Mar 2011 03:40:15 +0000 (UTC) Received: (qmail invoked by alias); 08 Mar 2011 03:40:14 -0000 Received: from p54850E3A.dip0.t-ipconnect.de (EHLO gmx.net) [84.133.14.58] by mail.gmx.net (mp049) with SMTP; 08 Mar 2011 04:40:14 +0100 X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX18ZsK1pFe4ZcD/ZDkuWp5p9fhRHLHjyNkEGrYhe74 nFI4fQm3zNyj+f Received: by gmx.net (nbSMTP-1.00) for uid 1001 Meino.Cramer@gmx.de; Tue, 8 Mar 2011 04:40:16 +0100 (CET) Date: Tue, 8 Mar 2011 04:40:16 +0100 From: meino.cramer@gmx.de To: Gentoo Subject: [gentoo-user] Still problems with sa-learn and user nobody Message-ID: <20110308034016.GA30223@solfire> 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 User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 X-Archives-Salt: X-Archives-Hash: d31744a33459cbff15922800b6272e62 Hi, still trying to accomplish this setup: - spamassassin / spamd to filter out spam - using berkdb as bayes db - giving user "nobody" as less rights as possible - spamd running under "nobody" rights - sa-learn started by me (user mccramer) - sa-learn will learn spam mails received and owned by me problems: - I had to assign a $HOME for nobody, but need still to use "bayes_path" to point to the bayes db - The script around sa-learn, which gives mccramer the right to start sa-learn under "nobody"s right is highly hackish: #!/bin/zsh sudo sudo -u nobody /usr/bin/sa-learn -p /etc/mail/spamassassin --spam --dbpath /etc/mail/nobody/.spamassassin/ --dir . - it still does not work and throws "access denied" error messages, may be caused, because user "nobody" has not the right to read mails ownd by mccramer archive-iterator: no access to .: Permission denied at /usr/lib64/perl5/vendor_perl/5.12.2/Mail/SpamAssassin/ArchiveIterator.pm line 539. archive-iterator: no access to .: Permission denied at /usr/lib64/perl5/vendor_perl/5.12.2/Mail/SpamAssassin/ArchiveIterator.pm line 771. archive-iterator: unable to open .: Permission denied Learned tokens from 0 message(s) (0 message(s) examined) I dont wand to give "world" the right to read my mail. How can I solve this knot of dependencies ??? Thank you very much in andvance for any help! Best regards mcc