From owner-freebsd-isp@FreeBSD.ORG Thu Jun 12 10:10:46 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C1B937B401 for ; Thu, 12 Jun 2003 10:10:46 -0700 (PDT) Received: from web1.subnetmask.net (web1.subnetmask.net [207.44.145.30]) by mx1.FreeBSD.org (Postfix) with SMTP id B6E2E43F85 for ; Thu, 12 Jun 2003 10:10:45 -0700 (PDT) (envelope-from freebsd@psyxakias.com) Received: (qmail 22923 invoked from network); 12 Jun 2003 17:10:44 -0000 Received: from athei53-a-157.otenet.gr (HELO computer) (PsYxAk?aS@62.103.210.157) by web1.subnetmask.net with SMTP; 12 Jun 2003 17:10:44 -0000 Message-ID: <000a01c33105$8e4e4ec0$152ea8c0@computer> From: "PsYxAkIaS (FreeBSD)" To: Date: Thu, 12 Jun 2003 20:10:39 +0300 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: cannot reboot from a script ran by root's crontab X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 17:10:46 -0000 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.