On 11/02/2015 04:38 PM, Shaheen Bakhtiar wrote:
Well… I’m glad I’m on this mailing list :P

I did the same thing, running sa-learn —spam /spamfolder as root, and
was pondering this very issue.

I understand the logic behind why it shouldn’t be run as root, the
problem is on FC 22 the spamd user has /sbin/nologin as the shell in
/etc/passwd. Which means in order to run the process as spamd one has
to manual change that to /bin/bash, then, change it back
(/sbin/nologin it self is a security precaution), once the process is
complete.

This seems convoluted.

I know sa-learn has -u option but that simply changes the user name
in the environment (does not sudo), is there a better way to do this?
Have i missed something?

Shawn

Assuming you're using file based Bayes DB

in local.cf add:

bayes_path /path_to/bayes/bayes

then you can learn as root .

h2h





Reply via email to