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

cron not running labca (Ubuntu 20.04 tested) #67

Closed
tjmullicani opened this issue Feb 18, 2023 · 2 comments
Closed

cron not running labca (Ubuntu 20.04 tested) #67

tjmullicani opened this issue Feb 18, 2023 · 2 comments

Comments

@tjmullicani
Copy link

On Ubuntu, within the docker containers, cron is not able to execute the /etc/cron.d/labca (/labca/cron_d) file since it is group-writable.

root@machine:~# docker ps
...
5ade9ea1d15f   letsencrypt/boulder-tools:go1.19.5_2023-01-10   "./control.sh"
...
root@machine:~# docker exec -it 5ade9ea1d15f bash
root@5ade9ea1d15f:/labca# ls -l /etc/cron.d/labca
lrwxrwxrwx 1 root root  13 Feb 18 03:58 labca -> /labca/cron_d
root@5ade9ea1d15f:/labca# ls -l /labca/cron_d
-rw-rw-r-- 1 root root 397 Feb 18 04:36 /labca/cron_d

The solution is to remove group writable permissions from /labca/cron_d

root@5ade9ea1d15f:/labca# chmod g-w /lab/cron_d
root@5ade9ea1d15f:/labca# ls -l /labca/cron_d
-rw-r--r-- 1 root root 397 Feb 18 04:36 /labca/cron_d

References:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/723423
https://serverfault.com/a/1040206

@hakwerk
Copy link
Owner

hakwerk commented Feb 18, 2023

I don't see this issue on any of my test machines, but it should be safe to always remove the group write so it will be included in the next release.

@hakwerk
Copy link
Owner

hakwerk commented Apr 15, 2023

Was included in release v23.03

@hakwerk hakwerk closed this as completed Apr 15, 2023
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

2 participants