Subject: why does spamd use /root when I set -u spamd
To: None <tech-pkg@netbsd.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 08/28/2003 22:25:17
--vOmOzSkFvhd7u8Ms
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Can anyone explain why I get these warnings?

I get this warning in maillog:

Aug 28 22:05:10 lazy spamd[76]: connection from localhost [127.0.0.1] at po=
rt 52261=20
Aug 28 22:05:10 lazy spamd[19901]: Creating default_prefs [/root/.spamassas=
sin/user_prefs]=20
Aug 28 22:05:10 lazy spamd[19901]: Cannot write to /root/.spamassassin/user=
_prefs: Permission denied =20
Aug 28 22:05:10 lazy spamd[19901]: Couldn't create readable default_prefs f=
or [/root/.spamassassin/user_prefs]=20
Aug 28 22:05:10 lazy spamd[19901]: processing message <20030827085152.GA242=
20@kocurek.zuzel.org> for root:1012.=20

Yet I have spamd running as:

22:03 yeled@lazy:~$ ps auwx|grep spamd
spamd      76  0.0  5.9 14500 15384 ??  SNs  10:03PM     0:02.21 /usr/pkg/b=
in/perl /usr/pkg/bin/spamd -u spamd -H /var/db/spamd -c=20

and it is working, it increments these db's:

22:08 yeled@lazy:~$ ls -la /var/db/spamd/
total 176
drwxr-xr-x  3 spamd  spamd    512 Aug 28 22:06 ./
drwxr-xr-x  9 root   wheel    512 Aug 28 21:41 ../
-rw-r--r--  1 spamd  spamd    762 Apr 26 00:15 .cshrc
-rw-r--r--  1 spamd  spamd    488 Apr 26 00:15 .login
-rw-r--r--  1 spamd  spamd    265 Apr 24 11:01 .logout
-rw-r--r--  1 spamd  spamd    504 Apr 26 00:15 .profile
drwx------  2 spamd  spamd    512 Aug 28 21:42 .spamassassin/
-rw-rw-rw-  1 spamd  spamd     20 Aug 28 22:06 bayes_msgcount
-rw-rw-rw-  1 spamd  spamd  32768 Aug 28 22:06 bayes_seen
-rw-rw-rw-  1 spamd  spamd  57344 Aug 28 22:06 bayes_toks

And I call spamc from /usr/pkg/etc/procmailrc:

:0fw
| /usr/pkg/bin/spamc

=66rom postfix.

Which is probably the problem right there. Any tips?

Regards,
  C.
--=20
 charlie@rubberduck.com - Melbourne, Australia
 http://rubberduck.com/~yeled/
 PGP: 0x14AA7941 || finger yeled@lazy.spodder.com

--vOmOzSkFvhd7u8Ms
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/TfStqiZDwhSqeUERAmciAJ0dacTUoeEwvb5n70H7Oz8eI3ueZwCgoeRa
G/3uAhZUxCN7IlRyTKpIsLE=
=bx33
-----END PGP SIGNATURE-----

--vOmOzSkFvhd7u8Ms--