Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 20:10:39 +0300
From:      "PsYxAkIaS (FreeBSD)" <freebsd@psyxakias.com>
To:        <freebsd-isp@freebsd.org>
Subject:   cannot reboot from a script ran by root's crontab
Message-ID:  <000a01c33105$8e4e4ec0$152ea8c0@computer>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01c33105$8e4e4ec0$152ea8c0>