[hobbit] /var/log/messages permission denied Centos 4 and 5

Hobbit User in Richmond hobbit at epperson.homelinux.net
Sat May 17 03:32:02 CEST 2008


It would seem simplest just to drop a
CREATE 640 root:hobbitgroup
into /etc/logrotate.d/rsyslog or /etc/logrotate.d/syslog, depending on
which syslogging daemon you use.  This will handle the list of files at
the top of that config file.  Make sure you have the default include for
logrotate.d in /etc/logrotate.conf.

On Fri, May 16, 2008 20:21, Josh Luthman wrote:
> Can you give us all some details on how do to that?
>
> On Fri, May 16, 2008 at 1:37 PM, Krash, Paul <pkrash at exegy.com> wrote:
>
>> I noticed on Centos 4 through 5.1 that the permissions on
>> /var/log/messages do not hold after the logs are rotated.
>>
>> I added the chmod and chgrp commands to the logrotate scripts.
>>
>> Not sure if this happens on other versions....
>>
>> Best,
>>
>> PKrash
>>
>> ------------------------------ *From:* Josh Luthman
>> [mailto:josh at imaginenetworksllc.com] *Sent:* Friday, May 16, 2008 1:56
>> AM *To:* hobbit at hswn.dk *Subject:* Re: [hobbit] /var/log/messages
>> permission denied
>>
>> chgrp HOBBITUSER /var/log/messages chmod g+r /var/log/messages
>>
>> Taken from:
>> http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/Administrati
>> on_Guide/Compiling_on_CentOS
>>
>> On Fri, May 16, 2008 at 2:51 AM, Gavin Leonard
>> <gleonard at progrexion.com> wrote:
>>
>>> When I look at my messages status on the Main BB page I only see
>>> this? Do I need to change the perms on the /var/log/messages folder?
>>>
>>>
>>>
>>> No entries in /var/log/messages
>>> <http://misery.pgx.local/hobbit-cgi/bb-hostsvc.sh?CLIENT=pbx-01&SECTI
>>> ON=msgs:/var/log/messages>
>>>
>>>
>>>
>>>
>>>
>>> Full log /var/log/messages
>>> <http://misery.pgx.local/hobbit-cgi/bb-hostsvc.sh?CLIENT=pbx-01&SECTI
>>> ON=msgs:/var/log/messages>
>>>
>>> Cannot open logfile /var/log/messages : Permission denied
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Gavin Leonard*
>>>
>>> [image: cid:image001.gif at 01C856AD.922EF120]
>>>
>>> Director, Systems-Network Engineering
>>>
>>> *T*
>>>
>>> 801-828-1735
>>>
>>> *F*
>>>
>>> 801-828-1704
>>>
>>> *E*
>>>
>>> gleonard at progrexion.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Research | Marketing | Sales Generation
>>>
>>> *www.progrexion.com* <http://www.progrexion.com/>
>>>
>>>
>>>
>>> This email and its contents are confidential. If you are not the
>>> intended recipient, delete this email and do not use or disclose the
>>> information within this email or its attachments. Thank you.
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> -- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St
>>  Suite 1337 Troy, OH 45373
>>
>> Those who don't understand UNIX are condemned to reinvent it, poorly.
>> --- Henry Spencer ** This e-mail and any documents accompanying it may
>> contain legally privileged and/or confidential information belonging to
>> Exegy, Inc. Such information may be protected from disclosure by law.
>> The information is intended for use by only the addressee. If you are
>> not the intended recipient, you are hereby notified that any disclosure
>> or use of the information is strictly prohibited. If you have received
>> this e-mail in error, please immediately contact the sender by e-mail
>> or phone regarding instructions for return or destruction and do not
>> use or disclose the content to others.
>>
>
>
>
> -- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St
> Suite 1337 Troy, OH 45373
>
> Those who don't understand UNIX are condemned to reinvent it, poorly. ---
> Henry Spencer
>




More information about the Xymon mailing list