Karsten Bräckelmann wrote:
On Fri, 2009-05-15 at 11:57 +1200, Lists wrote:
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
I know. :) That was meant for your enlightenment...
Thanks
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?
Environment.
so how do I fix the mkdir /root/.spamassassin failed error?
Sorry but i'm sooo super confused right now -
also if its not ~/root/.spamassassin folder what folder is it?
Ahem. It should be your postfix user's HOME. Or whatever HOME is set for
the SA scanning process.
/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
Not like that for /root, though. The postfix user does not have write
permissions in root's home. And rightly so...
yup I get that i just don't know what to do next to fix the permissions
error.
Thanks for your time Karsten, I appreciate your help and apologise for
being linux 'thick' at times.