cannot reboot from a script ran by root's crontab
PsYxAkIaS (FreeBSD)
freebsd at psyxakias.com
Thu Jun 12 10:10:46 PDT 2003
Hello
$ cat /usr/sbin/checkre
#!/bin/bash
mkdir /tmp/reboot
reboot now
$ crontab -l
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/sbin/checkre >/dev/null 2>&1
$ whoami
root
when the time comes, it makes the directory /tmp/reboot but it doesnt 'reboot now'.
Is this a security issue that forbids FreeBSD to reboot from a script running by root's crontab? if yes, how can i bypass it?
Thanks.
More information about the freebsd-isp
mailing list