public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Still problems with sa-learn and user nobody
@ 2011-03-08  3:40 meino.cramer
  0 siblings, 0 replies; only message in thread
From: meino.cramer @ 2011-03-08  3:40 UTC (permalink / raw
  To: Gentoo

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-08  3:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08  3:40 [gentoo-user] Still problems with sa-learn and user nobody meino.cramer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox