Skip to content

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

@rmdir

Description

@rmdir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions