You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Igor Chudov <ic...@Algebra.Com> on 2006/04/25 06:59:43 UTC

Permission errors

Doing some housecleaning...

I am running spamd as root, at which point it reverts to 'nobody'.

It then proceeds to complain, understandably, that it does not have
permission to write to users' directories. 


Apr 24 23:56:57 manifold spamd[21442]: spamd: still running as root:
user not specified with -u, not found, or set to root, falling back to
nobody at /usr/bin/spamd line 1152, <GEN353> line 4. 
Apr 24 23:56:57 manifold spamd[21442]: spamd: processing message
<00...@ego.co.th> for root:99 
Apr 24 23:56:58 manifold spamd[21442]: locker: safe_lock: cannot
create tmp lockfile
/root/.spamassassin/auto-whitelist.lock.manifold.algebra.com.21442 for
/root/.spamassassin/auto-whitelist.lock: Permission denied 
Apr 24 23:56:58 manifold spamd[21442]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp
lockfile
/root/.spamassassin/auto-whitelist.lock.manifold.algebra.com.21442 for
/root/.spamassassin/auto-whitelist.lock: Permission denied 


I am in a cleanup mode and would like to get rid of these errors, but
this one has me stumped. How can it expect to access inside root's
directory, if it runs as nobody???

i

Re: Permission errors

Posted by Jim Maul <jm...@elih.org>.
Igor Chudov wrote:
> Doing some housecleaning...
> 
> I am running spamd as root, at which point it reverts to 'nobody'.
> 
> It then proceeds to complain, understandably, that it does not have
> permission to write to users' directories. 
> 
> 
> Apr 24 23:56:57 manifold spamd[21442]: spamd: still running as root:
> user not specified with -u, not found, or set to root, falling back to
> nobody at /usr/bin/spamd line 1152, <GEN353> line 4. 
> Apr 24 23:56:57 manifold spamd[21442]: spamd: processing message
> <00...@ego.co.th> for root:99 
> Apr 24 23:56:58 manifold spamd[21442]: locker: safe_lock: cannot
> create tmp lockfile
> /root/.spamassassin/auto-whitelist.lock.manifold.algebra.com.21442 for
> /root/.spamassassin/auto-whitelist.lock: Permission denied 
> Apr 24 23:56:58 manifold spamd[21442]: auto-whitelist: open of
> auto-whitelist file failed: locker: safe_lock: cannot create tmp
> lockfile
> /root/.spamassassin/auto-whitelist.lock.manifold.algebra.com.21442 for
> /root/.spamassassin/auto-whitelist.lock: Permission denied 
> 
> 
> I am in a cleanup mode and would like to get rid of these errors, but
> this one has me stumped. How can it expect to access inside root's
> directory, if it runs as nobody???
> 
> i
> 
> 


Its not supposed to access root's home directory.  Set up another user 
(spamd or something) that spamd is going to run as and store all bayes, 
whitelist, etc files in that homedir instead.  There shouldnt be any SA 
files in root as spamd wont be able to read them.

-Jim