cronjob path for lynis and chkrootkit
I have tried several path configs with no success for Chkrootkit and Lynis. They both run fine manually and I have followed the published cron path suggestions, but can't get the jobs to execute what I placed in crontab file.
-
This is my cron : 0 4 * * * /usr/local/sbin/chkrootkit/chkrootkit 2>&1 | mail -s "Chkrootkit Reports of My Server" user@gmail.com 0 5 * * * /usr/local/bin/lynis --quick 2>&1 | mail -s "Lynis Reports of My Server" user@gmail.com are the path's correct?? 0 -
Can someone help me??...I have tried everything with no luck... 0 -
Well, I don't know what lynis is or what path it should use but that points to the lynis binary and chkrootkit looks correct but you can confirm by ensuring that is where the binary is located. Otherwise, you'd want to check the cron logs to see if there are errors when it runs /var/log/cron.log
as well as the mail logs to identify if the mail is being rejected at/var/log/exim_mainlog
Also keep in mind that both of these are 3rd party Softwares an not something provided by cPanel & WHM.0
Please sign in to leave a comment.
Comments
4 comments