From owner-freebsd-questions Wed Oct 10 20:14: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 422E637B40C for ; Wed, 10 Oct 2001 20:14:04 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.245.140.245.Dial1.SanJose1.Level3.net [209.245.140.245]) by falcon.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f9B3E1311775; Wed, 10 Oct 2001 20:14:01 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f9B3E0S06271; Wed, 10 Oct 2001 20:14:00 -0700 (PDT) (envelope-from cjc) Date: Wed, 10 Oct 2001 20:14:00 -0700 From: "Crist J. Clark" To: Scott Gerhardt Cc: FreeBSD Subject: Re: Deny shutdown Message-ID: <20011010201400.R387@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from scott@gerhardt-it.com on Wed, Oct 10, 2001 at 05:05:09PM -0600 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 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: > > Deny shutdown now from all but ttyv* > Deny shutdown -h or -p etc. from all but ttyv* > Allow shutdown -r from all (I would like to reboot remotely) > > Of course, halting the system or going into single user mode is really dumb > when administering a remote box so I want to diable it. > > Is this possible? It is possible. However none of this functionality is built into the shutdown(8) command. It will take some custom coding to get this done. Patches for this functionality would be welcome. (shutdown(8) is fun code too with functions like die_you_gravy_sucking_pig_dog().) -- Crist J. Clark cjclark@alum.mit.edu cjclark@jhu.edu cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message