Matt Kettler wrote:

At 10:26 AM 10/18/2004 +0100, Ronan wrote:

what is the switch to set my spamd children to run as non root. Ive looked throuhg all the docs but i must have skipped over it or i am just in a monday mood and cant understand it...


by default spamd will *refuse* to run as root. Normaly spamd setuid's to match the uid that called spamc.

well this is what i have after upgrading tp 3.0.0

ps -ef|grep spamd
root 23320 27167 0 11:58:56 ? 0:17 /usr/local/bin/perl -T /usr/local/bin/spamd -d -r /logs/spamd.pid
root 27167 1 0 Oct 15 ? 0:02 /usr/local/bin/perl -T /usr/local/bin/spamd -d -r /logs/spamd.pid
root 18777 27167 3 09:57:25 ? 1:14 /usr/local/bin/perl -T /usr/local/bin/spamd -d -r /logs/spamd.pid
root 19749 27167 8 10:13:03 ? 1:26 /usr/local/bin/perl -T /usr/local/bin/spamd -d -r /logs/spamd.pid
root 19250 27167 0 10:01:50 ? 1:03 /usr/local/bin/perl -T /usr/local/bin/spamd -d -r /logs/spamd.pid
root 21501 27167 0 10:55:07 ? 0:30 /usr/local/bin/perl -T /usr/local/bin/spamd -d -r /logs/spamd.pid



If it finds itself running as still running as root after that, it will setuid to "nobody" when it starts to scan mail.

but before when i was running 2.6.x(3) i think! spamd(root) did what youve said and called the others as user 'nobody'


If you want to specify a single user to run spamd as, use the -u parameter to spamd.
both were acalled using the same commandline

        /usr/local/bin/spamd -d -r /logs/spamd.pid

ronan
--
Regards

Ronan McGlue
==============
Analyst/Programmer
Information Services
Queens University Belfast
BT7 1NN

Reply via email to