On Fri, 29 Jul 2011, monolit939 wrote:

it will be problem, because when I use:
sa-learn --backup > /tmp/bayes_export
I get:
ls -l /tmp/bayes_export
-rw-r--r-- 1 root root 77 2011-07-29 15:37 /tmp/bayes_export # the file has
just 77B

BUT when I use:
su mail -c 'sa-learn --backup > /tmp/bayes_export'
I get:
ls -l /tmp/bayes_export
-rw-r--r-- 1 mail mail 35434634 2011-07-29 15:27 /tmp/bayes_export #the file
has more than 35MB!

So it appears spamc is running as user mail.

Execute the conversion instructions as user "mail", either by "su - mail" to that account if it has a shell defined, or via "su mail -c" for the individual commands.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  There is no better measure of the unthinking contempt of the
  environmentalist movement for civilization than their call to turn
  off the lights and sit in the dark.                 -- Sultan Knish
-----------------------------------------------------------------------
 7 days until the 276th anniversary of John Peter Zenger's acquittal

Reply via email to