Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2001 17:29:59 -0800
From:      "Crist J . Clark" <cjc@FreeBSD.ORG>
To:        William Evanson <evawil823@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: reboot script
Message-ID:  <20011206172959.M8975@blossom.cjclark.org>
In-Reply-To: <20011207011320.32816.qmail@web14402.mail.yahoo.com>; from evawil823@yahoo.com on Thu, Dec 06, 2001 at 05:13:20PM -0800
References:  <20011207011320.32816.qmail@web14402.mail.yahoo.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011206172959.M8975>