Karsten Bräckelmann wrote:
On Fri, 2009-05-15 at 11:09 +1200, Kate Kleinschafer wrote:
I'm trying to run sudo -u postfix spamassassin -D -p
/etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI and I would

That does not switch the environment. Try something like this...

  sudo -u postfix env | grep ^USER
  sudo -u postfix env | grep ^HOME

This gives USER=postfix and HOME=/root
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
                            ^^^^^
Sic. That's not the postfix user's HOME nor env.
sorry for my ignorance but what does env mean?
also if its not ~/root/.spamassassin folder what folder is it?
/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

Reply via email to