Reputation: 225
I'm running a webserver with PLESK and installed an extension 'kernel care' which I later on deleted. However, it installed a cronjob which sends me a mail every 4 hours:
Cron <root@server> /usr/bin/kcarectl --auto-update
Unknown Kernel (Ubuntu 3.13.0-042stab123.9)
I ssh into the server and run crontab -l as root but don't see the specific cronjob. However, in /etc/cron.d there is a file kcare-cron and if I cat this file it shows
16 */4 * * * root /usr/bin/kcarectl --auto-update
So thats the one I want to delete. Can I just delete the file kcare-cron?
Upvotes: 4
Views: 29314
Reputation: 3
If you check file
/etc/cron.allow
and see if accounts other than root exist, if there is then su to those accounts and try all the suggested actions above.
Upvotes: 0
Reputation: 3300
Notifications are sent by cron job configured in one of the following files /etc/cron.d/kcare-cron.rpmsave
or /etc/cron.d/kcare-cron
. Remove these files:
rm -f /etc/cron.d/kcare-cron.rpmsave
rm -f /etc/cron.d/kcare-cron
Upvotes: 0
Reputation: 328
1- Open terminal & type
sudo crontab -e
Now either remove cron command or marked '#' at start of command. Now save file (ctrl + O, & ctrl +X) & exit.
2- Do second option
sudo crontab -r
Note: This will remove all cron job.
Upvotes: 10
Reputation: 153
Upvotes: 0
Reputation: 7003
Type below command in terminal:
contab -e
then comment the line with #
at the start of line as below:
#16 */4 * * * root /usr/bin/kcarectl --auto-update
Or if you want to delete you can delete the line.
On saving the file it will automatically use changes in crontab.
Upvotes: 0