On Wed, 3 Jul 2002, Derrick 'dman' Hudson wrote:

> On Wed, Jul 03, 2002 at 05:44:11PM -0700, Bob Sully wrote:
> 
> | I had been using the standard call in .procmailrc: 
> | 
> | :0fw
> | | spamassassin -P
> | 
> | :0:
> | * ^X-Spam-Status: Yes
> | /home/rcs/mail/spam
> | 
> | With this, I only get the error message for root:
> | 
> | Jul  3 17:27:38 firefox spamd[28173]: read_scoreonly_config: cannot open 
> | "/root/.spamassassin/user_prefs": Permission denied
> 
> This shows that SA was started as the 'root' user.  Since you got
> Permission denied instead of file doesn't exist I suspect that SA
> dropped its root privileges (to 'nobody') and then couldn't read
> root's user config.


Right, it's started via /etc/rc.d/rc.local:

/usr/bin/spamd -u nobody

so I would agree with you.  Now, how to start it up so it won't complain?  
When I had it running as root, it complained about that and fell back to 
"nobody" anyway.  So I've given up one error message in /var/log/maillog 
for another.  Any way to get rid of both?


> | When I switched to: 
> | 
> | :0fw
> | | spamc -u rcs
> | 
> | I got:
> | 
> | Jul  3 17:27:44 firefox spamd[28177]: read_scoreonly_config: cannot open 
> | "/home/rcs/.spamassassin/user_prefs": Permission denied
> 
> Does that file exist?  What are the perms on it?  What if you make it
> world-readable and the parent directories world-executable?  Was spamd
> running as user 'rcs' or as 'nobody' at that time?  (for some reason,
> my version 2.31 spamd always complains about being root and drops to
> nobody even though it is told which user to run as)


[rcs@firefox: ~]$ lsl .spamassassin/
total 9
drwx------    2 rcs      rcs          1024 Apr  3 17:36 ./
drwx------   46 rcs      rcs          6144 Jul  3 19:24 ../
-rw-------    1 rcs      rcs          1281 Jun 27 08:16 user_prefs

Yes, it exists.  Spamd is running as "nobody" at this point.  Any way to 
fix this without making significant changes on dir perms?  I kind 
of like them the way they are (though I don't have a problem with making 
this one file world-readable). 

TIA -- Bob 
-- 
_______________________________
Bob Sully - Malibyte Consulting
Simi Valley, California, USA
http://www.malibyte.com

"Years of dedication, and a natural inclination" - J. Buffett




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to