From owner-freebsd-questions Thu Dec 6 17:30:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 809A537B417 for ; Thu, 6 Dec 2001 17:30:40 -0800 (PST) Received: from dialup-209.245.134.25.dial1.sanjose1.level3.net ([209.245.134.25] helo=blossom.cjclark.org) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16C9qR-0002lq-00; Thu, 06 Dec 2001 17:30:35 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fB71Txp11202; Thu, 6 Dec 2001 17:29:59 -0800 (PST) (envelope-from cjc) Date: Thu, 6 Dec 2001 17:29:59 -0800 From: "Crist J . Clark" To: William Evanson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: reboot script Message-ID: <20011206172959.M8975@blossom.cjclark.org> References: <20011207011320.32816.qmail@web14402.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011207011320.32816.qmail@web14402.mail.yahoo.com>; from evawil823@yahoo.com on Thu, Dec 06, 2001 at 05:13:20PM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 06, 2001 at 05:13:20PM -0800, William Evanson wrote: > I am looking to create a script to reboot my system > weather or not someone is logged in at su or not. > Does anyone know if this is possible. To do the su > and login and password in a script. I know this is a > bit unorthodox and not very safe, but does anyone have > any ideas how to do a restart without root level access? Are you saying you want to give non-root users the ability to reboot? By default, anyone in the 'operator' group can use the shutdown(8) command. -- "It's always funny until someone gets hurt. Then it's hilarious." Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message