perms on bayes_journal

Steve Campbell campbell at cnpapers.com
Tue Apr 1 18:16:32 IST 2008



Scott Silva wrote:
> 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.

Somehow, Scott, I didn't see that in your previous post. We're on the 
same page, though. What every it was, it wasn't modded to 777.

Old eyes and all
Steve



More information about the MailScanner mailing list