From owner-freebsd-questions Tue Feb 9 17:24:44 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA13410 for freebsd-questions-outgoing; Tue, 9 Feb 1999 17:24:44 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA13337 for ; Tue, 9 Feb 1999 17:24:25 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 19213 invoked by uid 1001); 10 Feb 1999 00:25:06 -0000 Message-ID: <19990210002506.19212.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Wed, 10 Feb 1999 10:25:06 +1000 From: Greg Black To: cjclark@home.com Cc: cchrstns@sdln.net (Corey A. Christians), questions@FreeBSD.ORG Subject: Re: Shutdown References: <199902091550.KAA05417@cc942873-a.ewndsr1.nj.home.com> In-reply-to: <199902091550.KAA05417@cc942873-a.ewndsr1.nj.home.com> of Tue, 09 Feb 1999 10:50:41 EST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > % ls -l `which shutdown` > -r-sr-x--- 1 root operator 147456 Jul 22 1998 /sbin/shutdown > > shutdown is a setuid command. It is simply a matter of using chmod to > give other users access to it. To reboot the system, > > % shutdown -r now Here are some much saner solutions (in increasing order of preference): 1. Add the users who are permitted to shut down the system in group operator. 2. If group operator doesn't suit for other reasons, create a new group "shutdown", chgrp shutdown /sbin/shutdown, and add your users to that group 3. Best of all, install sudo and put the people in your sudoers file, which allows you to give permissions to individuals, groups defined in various ways, with effect on various machines or networks, with or without passwords, etc, etc. The man pages describe this in great detail. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message