From owner-freebsd-questions Wed Oct 10 19:15:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from indigo.quadrant.net (indigo.quadrant.net [207.195.92.9]) by hub.freebsd.org (Postfix) with ESMTP id 9F39F37B410 for ; Wed, 10 Oct 2001 19:15:00 -0700 (PDT) Received: from git2000 (h24-71-180-125.ss.shawcable.net [24.71.180.125]) by indigo.quadrant.net (8.9.1/8.9.1) with SMTP id UAA15268; Wed, 10 Oct 2001 20:14:58 -0600 (CST) From: "Scott Gerhardt" To: "FreeBSD" , "Edwin Groothuis" Subject: RE: Deny shutdown Date: Wed, 10 Oct 2001 20:25:21 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20011011120155.C2865@k7.mavetju.org> Importance: Normal 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 Good point Edwin, I was just wondering is there was a "traditional" fix for this sort of thing. I am the administrator and would never do a shutdown -p or halt from a remote login, but then again, there is always possibility of doing a shutdown -p instead of a shutdown -r. :-) - Scott > -----Original Message----- > From: Edwin Groothuis [mailto:edwin@mavetju.org] > Sent: October 10, 2001 8:02 PM > To: Scott Gerhardt > Cc: FreeBSD > Subject: Re: Deny shutdown > > > On Wed, Oct 10, 2001 at 05:05:09PM -0600, Scott Gerhardt wrote: > > I would like to configure FreeBSD to disallow the following > shutdown related > > commands from all but the local console: > > Isn't this more an organisation problem than a operational problem? > I mean, only the root user and the operator group can do these > things. The easiest way (...) is to write a wrapper around it which > checks these preconditions and then calls > shutdown-thisistherealexecutable. > > It doesn't prevent people from calling > shutdown-thisistherealexecutable, > but it will prevent the obvious mistakes. > > Edwin > > -- > Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message