[arch-general] spamd "config: cannot create user preferences file"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, Casting about on the web, I gather this is an ownership/permissions issue. That'd be fine and I might know what to do about it if I knew where spamd was trying to create it and, for that matter, under what user. But I don't even know where the configuration is (assuming there is one). It looks to me like it is running as root: munich# ps aux | grep spam root 4221 0.2 2.6 168548 80532 ? S 15:16 0:20 spamd child root 15711 0.0 2.2 156172 68244 ? S 05:20 0:03 spamd child root 17327 0.0 0.0 14340 1100 pts/1 S+ 18:07 0:00 grep spam root 18855 0.0 1.8 145704 58072 ? Ss Apr03 0:22 /usr/bin/vendor_perl/spamd -d --pidfile /var/run/spamd.pid -c But otherwise, the systemd service file and the /etc/conf.d/spamd file aren't telling me much. The normally excellent Arch Wiki that I'm still learning to remember to look at doesn't seem to have an entry for spamassassin. Any ideas? Thanks! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRX3cwAAoJELJhbl/uPb4SZ8cQAIBzfRvvFhwr3Q8xOdHTv+D8 C8ozH5joGu7UAFBRmvkjSk8IGaML1+cYjaJT8e0EFT9qUMuF/JKxPbnN62xMWad5 JNc0QS7tx5pz6GmibreZytSCOEOZhvh5BN2QYSf3ouF6VRWMxxygmsAlKW94zP/V Z/MkTrb84aM0ZO2RDz20Am0Ox5KCH5ErRfq95TOdPGaAxqb672jTZse4IAP7QA+E kOCy1TP/BWh+oKmgQTy78vDtzixT7I+rcvPxu1yqPSaLbqmvoUQJ+S4Gcwzqcg8q VgbP/G1AXXwI83vj6xAk952uB6UjiwhuKLRAjhLx7oX8jzvTaXd7dttNpi9QJFQp oFi0rkyNerroS2Z/TXhyMJLrGQR2Cwu12o5xmOp4flGmOgLcPzVa242ke6s1Uh7n LPjf8aGOFYribcyIKj01Gb7XttbTxAlR6AEe/f3Eoh16ldyik5kLazOKB7mUyx7L 8EaUdpUr4o+IzXWL9RGuwEHtEk3cMcuDqGSdrEhnoitJ2eshhNeNB6KI6Yikc8ar hMzbm3qlOKndBUDhyC16/vczg7jgfir+97LJaWVGR0Q85X3RY+Vfy95C8ANMWHEG 1bsl8g1kLb5lo/PmB6FjDyLJYnwXLk+xYqqVuWm7anNPLjIJX9JP5UCkMXN/r5Xl YheohhiMs+ohP5xNc63b =GYz+ -----END PGP SIGNATURE-----
On Fri, Apr 05, 2013 at 06:15:29PM -0700, David Benfell wrote:
Casting about on the web, I gather this is an ownership/permissions issue. That'd be fine and I might know what to do about it if I knew where spamd was trying to create it and, for that matter, under what user.
I finally caught in the logs where spamassassin setuid to nobody and found in the man page that there is a -u to change this. So I created a spamd user, created the home directory, and a .spamassassin folder inside that directory. And of course changed ownership on the whole shbang. It does not appear to be honoring this. I'm still seeing messages like: Apr 06 00:21:12 munich.parts-unknown.org spamd[29794]: spamd: creating default_prefs: //.spamassassin/user_prefs Apr 06 00:21:12 munich.parts-unknown.org spamd[29794]: config: cannot create user preferences file //.spamassassin/user_prefs: No such file or directory Apr 06 00:21:12 munich.parts-unknown.org spamd[29794]: spamd: failed to create readable default_prefs: //.spamassassin/user_prefs and Apr 06 00:21:18 munich.parts-unknown.org spamd[29794]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /.spamassassin/bayes.lock.munich.parts-unknown.org.29794 for /.spamassassin/bayes.lock Apr 06 00:21:18 munich.parts-unknown.org spamd[29794]: spamd: identified spam (26.4/5.0) for nobody:997 in 5.5 seconds, 885 bytes. It still appears to running as nobody, judging from the last message. And it is, as I now understand, attempting to create these files in the root directory. But if spamd is indeed not honoring the -u option, I'm guessing this problem is upstream.
participants (1)
-
David Benfell