linuxmuster / linuxmuster-webui7

Next generation web interface for linuxmuster.net v7.
https://www.linuxmuster.net
GNU General Public License v3.0
12 stars 8 forks source link

Allow to create cron task which can be accessed by all admins #210

Closed dorianim closed 2 years ago

dorianim commented 2 years ago

Hi,

I really like the new cron plugin, I'm using it to execute regular syncs with linbo_remote. But because the plugin uses my own crontab, other admins cannot see and edit my tasks. Would it be possible to add an option to create a "global" cron task (maybe in root context) which every admin can edit?

Regards Dorian

kiarn commented 2 years ago

Hi,

I was awaiting this request. I see 2 solutions for this :

The first solution seems better.

dorianim commented 2 years ago

I also prefer the first solution :+1:

PLanB2008 commented 2 years ago

You could also add a checkbox like dorian suggested "global-crontab" and run crontab -u global-admin or something like that (specifying the user which is linked to the global cronjobs). But this begs the question: Do we need user specified crontabs at all? I mean in a multischool environment it makes sense to have "global" cronjobs and school specific. Other than that I would not offer every user the option to run cronjobs for security reasons. What do you guys think?

kiarn commented 2 years ago

The plugin is initially a copy of the ajenti plugin, with holiday addon, which currently does not work. The actual permissions only allows global and school admins to change this, no one else. I also think that only one cron would be enough in a single school env. One more thing to discuss in a meeting ... we already have a lot for the next meeting, the biggest question will be to find a date for this.

kiarn commented 2 years ago

Hello,

Since I was working on it today to enable school specific holidays, I suggest the following :

Arnaud

dorianim commented 2 years ago

Sounds good to me :)

kiarn commented 2 years ago

Hello,

Do you mean that only global-admins can edit cron jobs ?

Arnaud

dorianim commented 2 years ago

Yes. In my opinion, this is fine, as it is a very low-level administrative task.