[Bug 2350109] Review Request: systemd-cron - systemd-generator implementing cronie and anacron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2350109



--- Comment #11 from Alexandre Detiste <alexandre.detiste@xxxxxxxxx> ---

The security model is not the same on Debian & Fedora.

On Debian, /var/spool/cron/crontabs/ is owned by group
'crontab', this job is actualy done by 'cron-daemon-common'.

On Fedora /var/spool/cron is own by the cron implementation.
Which might make the job easier or harder.

Please try to switch back and forth between cronie
and systemd-cron and see wether non-root user crontabs all still work.



[root@fedora ~]# rpm -qf /var/spool/cron
systemd-cron-2.5.1-1.fc43.x86_64
[root@fedora ~]# ls /var/spool/cron/ -dl
drwx-wx--T. 2 root root 18 10 mar 15:55 /var/spool/cron/



$ ls /var/spool/cron/crontabs/ -ld
drwx-wx--T 2 root crontab 4096 20 sep  2023 /var/spool/cron/crontabs/
$ lsb_release -a
Distributor ID: Debian

These might help setting up similar setting if desired

https://salsa.debian.org/debian/cron/-/blob/master/debian/cron-daemon-common.tmpfile?ref_type=heads
(new systemd-tmpfiles config)
https://salsa.debian.org/debian/cron/-/blob/master/debian/cron-daemon-common.sysusers?ref_type=heads
(new systemd-sysuser config)
https://salsa.debian.org/debian/cron/-/blob/master/debian/cron-daemon-common.postinst?ref_type=heads
(beware, lots of legacy)


Have a look there too:

https://src.fedoraproject.org/rpms/cronie/blob/rawhide/f/cronie.spec


/usr/bin/crontab should work for all users even if you don't use it yourself
and you will have to learn how it works

I'm maintaining this for 10 years because I first wanted to remove cron; I'm
used to this paradox.


All in all that's the reason I never applied for packaging this myself, I only
spin up my almost empty Fedora VM once a year or so
and this needs more field testing


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2350109

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202350109%23c11

-- 
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux