I'm trying to run my service as jailed services as daemon user.
the file is getting created under /etc/crontabs as daemon user.
But the job is not executing only root user job is executing.
my guid and suid for the daemon file is daemon.
If i change that to root then cronjob is running.
I tried to create cron.allow and cron.deny files with username daemon. But still not executing. Any other way to run the daemon job with daemon suid and guid, not as root?
sudo option is not enabled. what about cron.allow and cron.deny files is that applicable in openwrt? any acl available for the cron jobs to run as non root user without root permission?
I saw a check in miscutils/crond.c file to check for DAEMON_UID as 0 in line number 440. If i remove that check it's working for other user (daemon). But i just want to know any other way of doing it.
I'm also doing the same but no luck. any specific setting to be done? I'm using BusyBox v1.33.1. OpenWrt 21.02-SNAPSHOT, r16756-f04e26ac5b. I'm able to run with
-rw-r--r-- 1 root root 36 Jan 12 04:14 daemon
but below one not working -
-rw-r--r-- 1 daemon daemon 36 Jan 12 04:14 daemon