Bug 5734 - spamd should not require a -u option when run as non-root
Summary: spamd should not require a -u option when run as non-root
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: Other other
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2007-11-28 16:03 UTC by Duncan Findlay
Modified: 2007-11-28 16:03 UTC (History)
0 users

Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Findlay 2007-11-28 16:03:45 UTC
The -u option is required by spamd when any --vpopmail, --virtual-config-dir,
--ldap-config or --sql-config is used.

This seems redundant when spamd is not being run as root. This was brought up in
discussion about bug 5728. To quote Justin:

> So the caller has to know what their current
> username is, and use that in the invocation, and spamd will then run ok as
> non-root with those options.
> If you are suggesting that we should *automatically* deal with this case, by
> doing something like
>   if ($> != 0 && !$opt{'username'}) {
>     # we are run as non-root; set username to whatever we're currently running as
>     $opt{'username'} = currently_running_username();
>   }
> I would be in favour of this, as a new feature.  But it'd be a separate bug...