Re: Can I change group and permissions on the messages file?



On Mon, 25 Sep 2006 01:47:28 +0000 (UTC), Ohmster wrote:
Did the locate stat |grep bin and came back with plenty, this one seems
relevelt:

/usr/bin/stat

Let's try it again with an updated path to stat.

Well, the file ran and gave no output, perhaps it works. Will put it in
place as a cron daily and see if it works.

Do a
chmod 400 /var/log/messages
and run the cron job early. What is the the daily cron job you ask?

$ cat /etc/crontab
# run-parts
01 * * * * root nice -n 19 run-parts --report /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts --report /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts --report /etc/cron.monthly

Ok, let's run it
nice -n 19 run-parts --report /etc/cron.daily
ls -al /var/log/messges

.



Relevant Pages