Should be postfix. sudo -s postfix == the -u means run as user ______, so you are asking it to run as postfix.
It looks like you are trying to create the directory .spamassasin under /root as postfix which you probably do not want. Maybe this will work better for you: su - postfix spamassassin -D -p /etc/MailScanner/spam.assassin.prefs.con -t <MESSAGE.MAI &> text.txt -----Original Message----- From: Lists [mailto:li...@rheel.co.nz] Sent: Thursday, May 14, 2009 6:09 PM To: SpamAssassin Subject: Re: saving output of test to a text file Andrews Carl 448 wrote: > I think you want > Sudo -u postfix spamassassin -D -p > /etc/MailScanner/spam.assassin.prefs.con -t <MESSAGE.MAI &> text.txt > > Have a look at Example 3.6 - > http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html > > > -----Original Message----- > From: Lists [mailto:li...@rheel.co.nz] > Sent: Thursday, May 14, 2009 5:39 PM > To: SpamAssassin > Subject: saving output of test to a text file > > Hi, > > I'm trying to run sudo -u postfix spamassassin -D -p > /etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI and I would > like the full output to be saved to a text file when I do: > sudo -u postfix spamassassin -p > /etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI > text.txt > it only puts the last part (i.e. the message and scores) into the text > file. > > I really need to see all the debug output as I am trying to see which > user is running when trying to access FuzzyOCR. > > Thanks > Kate > Do you know how I can tell which user is running? i.e. I have a line [8357] dbg: config: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 1577 The permissions on the folder are drw-rw-rw- root:root Regards Kate