I'm setting up an embedded system from scratch with OpenBSD. The system is VERY much stripped down to the absolute necessary files only.

I have troubles using cron:

in /etc/crontab I have:
-----------------------------------
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/tmp/log
*/1 * * * * root /bin/sh -c "echo DEBUGMARKER>/tmp/console"
-----------------------------------

I have an entry for root in /etc/passwd (and master.passwd respectively).

Nevertheless, when cron starts, I get this:

-----------------------------------
# /usr/sbin/cron -n -x sch
debug flags enabled: sch
[9538] cron started
[9538] GMToff=7200
[9538] Target time=1209315180, sec-to-wait=28
[9538] tick(53,16,26,3,0)
user [root:0:0:...] cmd="/bin/sh -c "echo DEBUGMARKER>/tmp/console""
[9538] Target time=1209315240, sec-to-wait=60
log_it: (root 14005) CMD (/bin/sh -c "echo DEBUGMARKER>/tmp/console")
setusercontext failed for root
log_it: (root 20135) MAIL (mailed 31 bytes of output but got status 0x0001)
[9538] Target time=1209315240, sec-to-wait=59
-----------------------------------

The problem seems to be: "setusercontext failed for root"
Why is this so and what can I do to solve this?

A little more explanation:
I'm not using std init-procedure, the kernel loads a custom init-script which does the things the system is designed to do. One task in the init-script is to start crond which is just there to do some cleanups regularly.

Help will be appreciated!

T.

Reply via email to