From owner-freebsd-questions Wed Nov 11 10:16:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA15611 for freebsd-questions-outgoing; Wed, 11 Nov 1998 10:16:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from laker.net (jet.laker.net [205.245.74.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA15606 for ; Wed, 11 Nov 1998 10:16:47 -0800 (PST) (envelope-from sfriedri@laker.net) Received: from nt (digital-pbi-145.laker.net [208.0.233.45]) by laker.net (8.9.0/8.9.LAKERNET.NO-SPAM.SPAMMERS.AND.RELAYS.WILL.BE.TRACKED.AND.PROSECUTED.) with SMTP id NAA04116; Wed, 11 Nov 1998 13:16:21 -0500 Message-Id: <199811111816.NAA04116@laker.net> From: "Steve Friedrich" To: "Dan Busarow" Cc: "freebsd-questions@FreeBSD.ORG" , "Tolpin Vladimir" Date: Wed, 11 Nov 1998 13:14:30 -0500 Reply-To: "Steve Friedrich" X-Mailer: PMMail 98 Professional (2.01.1600) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Shutdown Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 11 Nov 1998 09:20:06 -0800 (PST), Dan Busarow wrote: >On Wed, 11 Nov 1998, Steve Friedrich wrote: >> I tried two different solutions: >> 1. Add a user called shutdown and use vipw to change his shell from >> /bin/sh to /sbin/halt. Use vipw to change the user ID to 0 >> 2. Use chmod +x /sbin/shutdown to allow ordinary users execute >> privilege. >> >> Solution 1 might allow users to Control-C their way to a root prompt. >> Solution 2 seems best to me. > >Just add the users who should be able to shutdown the system to >group operator. That's why /sbin/shutdown is setuid root Thanks for the tip. I think this should be documented somewhere, like the shutdown man page. I couldn't find it in the handbook either. Unix systems measure "uptime" in years, Winblows measures it in minutes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message