Bug#293207: bogofilter: Any fix found?
Dann Daggett
dann at exposim.com
Tue Mar 8 16:38:53 CET 2005
> > If this is the case I need to include a bogofilter option so it
executes as
> > the actual user being updated. I found no such option in the man
pages
> > however.
>
> No need. Either of these options should work:
>
> - some cron programs have the option of running their children under
a
> particular user account; on SuSE, /etc/crontab has a 6th column
for the
> user ID. Your cron may not offer this option.
>
> - su(1), with GNU coreutils (or predecessors), something like the
> following might work, the trailing "dann" is the user account to
use,
> and you may perhaps need to retry su -l -c ... (with -l, that's
minus
> and ell) added, see "info coreutils 'su invocation'" for details.
>
> su -c '/usr/local/bin/bogofilter -s -d "/home/dann/.bogofilter"
> -I "/home/dann/Procmail/103"' dann
>
> - some run_as program. I am attaching my own variant,
> just prefix "run_as dann " to your cron job, without the quotes,
and
> giving the program name (bogofilter) with full path, as you
already
> do, run_as does not search $PATH. run_as expects to be run by
root. As
> you already have bogofilter, allow me to refer you to the GNU
General
> Public License that shipped with bogofilter in the COPYING file.
>
> Compile with gcc -Os -s -o run_as run_as.c
> (use -O rather than -Os if your compiler complains about -Os)
Thank you so much Matthias! That's exactly what I needed. This has
been very educational for me as well. I sure appreciate your help (and
you too David!) in this matter. I think we can consider this one
solved :)
Cheers!
Dann
_______________________________________________
Bogofilter mailing list
Bogofilter at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter
More information about the Bogofilter
mailing list