Am 02.11.2015 um 16:42 schrieb Axb:
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? ShawnAssuming you're using file based Bayes DB in local.cf add: bayes_path /path_to/bayes/bayes then you can learn as root
why should somebody do this after configure site_wide bayes like above instead set the permissions and put a restricted user for sa-learn in the group with writre permissions?
signature.asc
Description: OpenPGP digital signature