[hobbit] /var/log/messages permission denied Centos 4 and 5
Krash, Paul
pkrash at exegy.com
Sat May 17 17:21:54 CEST 2008
Mr. Luthman wrote:
> Can you give us all some details on how do to that?
Sure!
Here is the default script from Centos5.1 with the chmod command:
#/etc/cron.daily/logrotate
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with
[$EXITVALUE]"
fi
/bin/chmod 755 /var/log/messages
exit 0
Notice that this makes /var/log/messages world readable. :-O
But I digress. :-)
Best,
PKrash, temporarily working off a Winserver, sorry for any Outlook
mangling.
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.
More information about the Xymon
mailing list