On Sun, Mar 10, 2002 at 12:11:31PM -0700, Joel Knight wrote:
> Hello,
> 
> I'm looking at spamd's behavior when the -P flag is used. On lines 280
> and 387 a log message is generated if -P is used and if the script is still
> running as root.  This could happen for two reasons:
> 
> 1)  handle_user() was passed the username "root"
> 2)  no "User" header was passed to spamd
> 
> In both cases, I believe spamd should fall back to a default user 
> of "nobody".  Currently this does not happen; processing continues as 
> root.  The only time spamd falls back to nobody is when -P is not used. 
> I think that whether or not -P is used the following should happen:
> 
> a)  spamd changes uids to the user running spamc via handle_user()
> b)  if handle_user() fails or no "User" header, fall back to nobody
> c)  if that fails, die()
> 
> I have attached a patch which turns on this behavior.  Comments?
> 
> Please CC replies to me.
> 
> 
> .joel
> 

Umm... please enlighten us as to what -P would be good for then. If you want
the behaviour you describe, simply remove the -P flag.

Perhaps you are confusing the -P option for spamassassin with the -P option
for spamd?

-- 
Duncan Findlay

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to