> -----Original Message----- > From: Kate Kleinschafer [mailto:[EMAIL PROTECTED] > Sent: 15 October 2008 1:32 p.m. > To: [email protected] > Subject: permissions on /root/.spamassassin folder > > Hi all, > > Just wondering what the permissions should be on the /root/.spamassassin > folder. > > When I run a message by the command > sudo -u postfix spamassassin -p > /etc/MailScanner/spam.assassin.prefs.conf -t < message.MAI > > I am getting the error warn: config: path /root/.spamassassin is > inaccessible permission denied. > owned by root:root > permissions drwx > > Thanks > Kate
Hello Kate, The problem is that you're trying to access a file owned by root, and yet your sudo command line changes the user to postfix - so you're actually running the command as the postfix user, not root - and thusly cannot use root's files. If you're already logged in as the root user, perhaps try the command without the "-u postfix" part... or... If you're not already root, replace "postfix" after the "-u" part with "root". The other possibility is that you want to access root's Spamassassin files as the "postfix" user. You can change the permissions on the files, but I don't recommend that - there must be another way to achieve the desired result. (Perhaps user grouping could have something to do with it) - but this is now turning into a postfix question. Cheers, Michael Hutchinson Manux Solutions Ltd
