From owner-freebsd-questions@FreeBSD.ORG Thu Sep 6 21:35:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB6FF16A46E for ; Thu, 6 Sep 2007 21:35:46 +0000 (UTC) (envelope-from hakmi@rogers.com) Received: from smtp107.rog.mail.re2.yahoo.com (smtp107.rog.mail.re2.yahoo.com [68.142.225.205]) by mx1.freebsd.org (Postfix) with SMTP id 48F3113C509 for ; Thu, 6 Sep 2007 21:35:46 +0000 (UTC) (envelope-from hakmi@rogers.com) Received: (qmail 37365 invoked from network); 6 Sep 2007 21:35:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:From:To:Cc:References:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-Reply-To:thread-index:X-MimeOLE; b=kK1c+djSdj45Co/SJ3XU4s7Swt8aCGx0oKhlJtDhN8xCAl4slsDLzul9W6UHbr8p1n90HW8T8cyvb/1E+XG0n7Qw0QaEbpSySnfAz6UEntCHx4+DEvSSG+n4HoAOG+wKO30rQRbfa6iimhwhWSH6mqFyYBoVZVXyFDDVb3eFsHM= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@99.224.65.182 with login) by smtp107.rog.mail.re2.yahoo.com with SMTP; 6 Sep 2007 21:35:45 -0000 X-YMail-OSG: NZRrO5MVM1lqNc87FcrBcxwrJu72kVHA7Lj1TUNwswC4_h8tiJIL.bV.Doy7iF9gFw-- From: "Tamouh H." To: , References: <20070906.165704.14591.0@webmail18.dca.untd.com> Date: Thu, 6 Sep 2007 17:36:11 -0400 Message-ID: <106801c7f0cd$f202a510$6900a8c0@tamouh> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20070906.165704.14591.0@webmail18.dca.untd.com> thread-index: AcfwzG5tgiVrvK+ETtKi0l8LhgUdGAAAWUMQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Cc: freebsd-questions@freebsd.org Subject: RE: temporary su login X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 21:35:46 -0000 >=20 > Robin Becker wrote: > > My collocation supplier is about to move our FreeBSD box and wants=20 > > some way to shut it down cleanly. Is there a simple way to allow a=20 > > non-root user to have shutdown rights without just giving them the=20 > > world. At present I don't even allow login via ssh on that=20 > box ie it's=20 > > purely key based. > What I would do is develop a script (owned by root )=20 > and callable by everybody which then checks the user-id of=20 > its caller, and if it is an acceptable one, the script will=20 > issue a warning (to wall) and then shutdown the system. >=20 why not ask them to do CTRL+ALT+DEL which will reboot the server cleanly = and once it hit does the intial reset, turn it off. Tamouh