perms on bayes_journal
Scott Silva
ssilva at sgvwater.com
Tue Apr 1 17:45:21 IST 2008
on 4-1-2008 6:00 AM Steve Campbell spake the following:
>
>
> Scott Silva wrote:
>> on 3-31-2008 2:08 PM Johnny Stork spake the following:
>>> 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 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 interface.
>>>
>>> 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
>>> modes.
>> It looks like at one time you CHOWN'd to 777, which probably isn't
>> what you wanted.
>>
>
> Isn't that an invalid user '777' and not a chmod '777'? Did you copy
> these from another machine that had a user with 777 as the user id and
> that doesn't exist on the current machine?
>
> Steve
>
It could be, but I thing typing chown instead of chmod is a more reasonable
explaination. You can chown by user or group id also.
--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20080401/f772e636/signature.bin
More information about the MailScanner
mailing list