perms on bayes_journal
MailScanner at ecs.soton.ac.uk
Tue Apr 1 10:04:41 IST 2008
Johnny Stork wrote:
> I have found for some reason, on my MS (current) setup running on
> Centos5, that the files in /etc/Mailcanner/bayes/ keep getting the
> permissions changed and I am not sure how this is happening. Right now
> they show
> root at gateway:/etc/MailScanner# ls -la bayes/
> total 14464
> drwxrwxrwx 2 777 root 4096 Mar 31 13:31 .
> drwxr-xr-x 6 root root 4096 Mar 31 13:04 ..
> -rw------- 1 777 root 48480 Mar 31 14:01 bayes_journal
> -rwxrwxrwx 1 777 root 1152 Mar 31 13:41 bayes.mutex
> -rwxrwxrwx 1 777 root 10514432 Mar 31 13:41 bayes_seen
> -rw------- 1 777 root 5308416 Mar 31 13:41 bayes_toks
> -rwxrwxrwx 1 777 root 423 Sep 24 2007 razor-agent.log
> -rwxrwxrwx 1 777 root 0 Sep 24 2007 Starting
> -rwxrwxrwx 1 777 root 0 Sep 24 2007 Update
> And so bayes_journal and bayes_toks cant be accessed by MailScanner
> which runs as root.
I think you've got a typo here somewhere. If MailScanner is running as
root, then by definition it can access all files.
> I have to go in an chmod 777 bayes* in order for MailScanner/SA to
> access those files, or to show the Bayes stats in the MailWatch
> Is there some place I should be setting the permissions for those
> files? I dont want to have to keep going in an manually changing the
Julian Field MEng CITP CEng
Buy the MailScanner book at www.MailScanner.info/store
Need help customising MailScanner?
Need help fixing or optimising your systems?
Need help getting you started solving new requirements from your boss?
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner