Logrotate Errors after Compilers Tweak(?)

web12

Well-Known Member
Nov 20, 2002
240
0
166
Hi,

I thought I would enable the compilers restriction tweak in WHM yesterday, and this morning in my Cron emails I received the following
/tmp/logrotate.Bmuzzo: gt: command not found
/tmp/logrotate.Bmuzzo: /dev/null: Permission denied
cat: 2: No such file or directory
/tmp/logrotate.Bmuzzo: gt: command not found
/tmp/logrotate.Bmuzzo: /dev/null: Permission denied
/tmp/logrotate.sw29wG: gt: command not found
/tmp/logrotate.sw29wG: /dev/null: Permission denied
/tmp/logrotate.ZdnAu0: gt: command not found
/tmp/logrotate.sw29wG: gt: command not found
/tmp/logrotate.ZdnAu0: /dev/null: Permission denied
cat: 2: No such file or directory
/tmp/logrotate.ZdnAu0: gt: command not found
/tmp/logrotate.aUoEmq: gt: command not found
cat: 2: No such file or directory
cat: 2: No such file or directory
/tmp/logrotate.ZdnAu0: /dev/null: Permission denied
/tmp/logrotate.sw29wG: /dev/null: Permission denied
/tmp/logrotate.aUoEmq: /dev/null: Permission denied
/tmp/logrotate.aUoEmq: gt: command not found
/tmp/logrotate.aUoEmq: /dev/null: Permission denied
/tmp/logrotate.heIYfU: gt: command not found
/tmp/logrotate.heIYfU: /dev/null: Permission denied
cat: 2: No such file or directory
/tmp/logrotate.yfXY6m: gt: command not found
/tmp/logrotate.heIYfU: gt: command not found
cat: 2: No such file or directory
/tmp/logrotate.yfXY6m: gt: command not found
/tmp/logrotate.yfXY6m: /dev/null: Permission denied
/tmp/logrotate.dnrOxT: gt: command not found
cat: 2: No such file or directory
/tmp/logrotate.heIYfU: /dev/null: Permission denied
/tmp/logrotate.yfXY6m: /dev/null: Permission denied
/tmp/logrotate.dnrOxT: /dev/null: Permission denied
/tmp/logrotate.dnrOxT: gt: command not found
/tmp/logrotate.dnrOxT: /dev/null: Permission denied
/tmp/logrotate.qWYuMr: gt: command not found
/tmp/logrotate.qWYuMr: /dev/null: Permission denied
cat: 2: No such file or directory
/tmp/logrotate.qWYuMr: gt: command not found
/tmp/logrotate.J2p631: gt: command not found
cat: 2: No such file or directory
/tmp/logrotate.J2p631: gt: command not found
/tmp/logrotate.qWYuMr: /dev/null: Permission denied
/tmp/logrotate.J2p631: /dev/null: Permission denied
/tmp/logrotate.J2p631: /dev/null: Permission denied
So i ran logrotate from the command line, and sure enough the permission denied errors appear there too.

Now, ive allowed root access to the compilers, but should there maybe something else added to allow logrotate.conf to work or have I missed a trick here and done something wrong?

tia
 

web12

Well-Known Member
Nov 20, 2002
240
0
166
Hmmm.. .ok, I think I found the problem and it was nothing to do with the compilers tweak.

This was actually an addition I made to one of the logrotation files to rotate the domlogs, and where I copied and pasted it from a forum post it added 2>/dev/null instead of >/dev/null

Just running logrotate again to make sure that cured the problem, but looks promising.