Skip to content
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

[PATCH] manage_cron_permissions : users in /etc/cron.allow should have their own crontab #322

Open
rmdir opened this issue Aug 26, 2024 · 0 comments

Comments

@rmdir
Copy link

rmdir commented Aug 26, 2024

Describe the bug

/etc/cron.allow needs to be readable to use a crontab. manage_cron_permissions enforce it to "og-rwx".

Expected behavior

A user added to /etc/cron.allow should be able to use cron

Actual behavior

# ls -l  /etc/cron.allow 
-rw------- 1 root root 7 23 août  12:53 /etc/cron.allow
# cat /etc/cron.allow 
joris
# su - joris -c "/usr/bin/crontab -l"
/etc/cron.allow: Permission denied
You (joris) are not allowed to use this program (crontab)
See crontab(1) for more information

Tested on debian 11 and 12

** Solutions **

  • allow resource overloading with enforce_resources like the others files
  • use a group to manage permissions
  • ...

0001-Normalization-of-cron-files-decaration.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant