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

personal crontab not allowed due to wrong permissions on directory #2326

Closed
jbwells opened this Issue Sep 19, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@jbwells

jbwells commented Sep 19, 2016

Qubes OS version (e.g., R3.1):

R3.2-rc2

Affected TemplateVMs (e.g., fedora-23, if applicable):

AppVM using debian-8 TemplateVM


Expected behavior:

"crontab FILE" should set the user's personal (non-root) crontab.

Actual behavior:

crontab fails with this error message:

/var/spool/cron: chdir: Permission denied

Steps to reproduce the behavior:

Run "crontab < /dev/null" while cron is active.

General notes:

The bug is the permissions used in this line in /lib/systemd/system/cron.service.d/30_qubes.conf:

ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron

That only allows root to have a crontab.


Related issues:

none.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 19, 2016

Member

This differs between Fedora and Debian. On Fedora crontab tool is
set-uid root, so the current mode is ok. But on Debian, it is set-gid
crontab, so crontab group write is needed.

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Member

marmarek commented Sep 19, 2016

This differs between Fedora and Debian. On Fedora crontab tool is
set-uid root, so the current mode is ok. But on Debian, it is set-gid
crontab, so crontab group write is needed.

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment