Running cron as root is not working

Hello everybody,

I installed cron for some task scheduling and used the cronjobs as a user.

For this I installed cron and activated the service with systemctl start cronie.

I tested some bash scripts and the worked.
I wanted to create a script that would update all the packages, delete cache and so on.

For this I have to be root.

I wanted to create a cronjob as root after opening the terminal as root with the known command:

crontab -e

and got this error message:

no crontab for root - using an empty one
Executing Kate with kdesu is not possible due to unfixable security vulnerabilities. It is also not necessary;simply use Kate normally, and you will be prompted for elevated privileges when saving documents if needed.
crontab: "kate" exited with status 1

I updated all packages, reinstalled them as well. But no result.
What information should I provide / is missing?

Thanks in advance.

From terminal text.:
Executing Kate with kdesu is not possible due to unfixable security vulnerabilities. It is also not necessary; simply use Kate normally, and you will be prompted for elevated privileges when saving documents if needed.


Or use micro :slight_smile:

All in all, it's not recommended to use cron for system updates.

But how you like. :slight_smile:

4 Likes

Micro the editor? Or what is Micro?

Micro is a terminal based text editor just like vim or nano or emacs. But it is more beginner friendly.

3 Likes

I have switched to mcedit (in mc package) and looks nice, with mouse usage and menus :sunglasses:

6 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.