-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
services.scheduling.fcron broken in 17.03 #24814
Comments
You mean something like this:
would fix your problem? |
Yes, but now that I'm seeing it run. I'm thinking just dropping the change in ownership is the best path. It appears that the fcron daemon runs as root and expects those files to be owned by root. I just created a new file and the permissions were set like so:
This indicates that setting the owner of Why do you do the group change with a loop instead of |
I dropped chmod in 5ca7e8a |
Thanks @Mic92! What's the usual time before I'll see that show up in the stable packages? |
It should be already. |
Looks like the install command is now causing problems on newly activated fcrons:
The permissions on
Looks like the install command needs to set the s bits for user and group. Permissions on a working fcron:
Looks like the install should be using 6770 for mode to truly fix this. |
fcron does handle permissions on its own correctly fixes NixOS#24814 (cherry picked from commit 5ca7e8a)
Issue description
After upgrading to NixOS 17.03, I've found a small issue in the running of fcron. Jobs don't run if crontabs existed during a restart of fcron. This is due to ownership of the generated files in the fcron spool (should be root not fcron). This is due to the ownership change in the systemd unit in the fcron module. This permission change needs to be restricted to
/var/spool/fcron/*.orig
. I've verified this by changing the ownership of the appropriate files (those not ending in orig) toroot:root
and fcron loads the jobs upon start.Steps to reproduce
journalctl contains the following statements:
Technical details
The text was updated successfully, but these errors were encountered: