From owner-freebsd-current@FreeBSD.ORG Wed Nov 19 07:32:26 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 866569DF for ; Wed, 19 Nov 2014 07:32:26 +0000 (UTC) Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B107B52 for ; Wed, 19 Nov 2014 07:32:26 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id rd18so10014iec.36 for ; Tue, 18 Nov 2014 23:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JSWV8nVxqN9ynC8n6B9H4ff08/yrw5P29i8cVzke+io=; b=mmpM2n2K9I2wOA/aTp8nz2ymU0569McAr/d7HESloDkymSMwijiib0GSc+r7qLz1VE F/1Y5JLjKxi8KTi7ojVdviep2WHjNUUzqrMHWC5wOz5XVHFZY9QBXiRoWjlXVhNMassp 075kLLhRbMBbfo5ibuyHMQP5LtEK37zbcFcUAsn02SQC4vyNEiaLytiAYclXmnwZCbil cBDiY2Yf1XUAY13U/ailXNDJuGMyIyeRgHXfsfdb8BFxafceR8zBsrrBhNbazmH+0rtv reCOQizXC6IFmTbDr0X3+I8S5mbRT4m6eYuSM7WvJGcFmsOMsCDBVb8TDSTiBbPpHsxa xKzQ== MIME-Version: 1.0 X-Received: by 10.50.79.166 with SMTP id k6mr8754791igx.0.1416382345603; Tue, 18 Nov 2014 23:32:25 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.107.7.169 with HTTP; Tue, 18 Nov 2014 23:32:25 -0800 (PST) In-Reply-To: References: Date: Tue, 18 Nov 2014 23:32:25 -0800 X-Google-Sender-Auth: 1H9xmdRMK4mkBiq07DK0H5GzQJE Message-ID: Subject: Re: reboot on wheel From: Kevin Oberman To: =?UTF-8?B?QnJ1bm8gTGF1esOp?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-current@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 07:32:26 -0000 On Tue, Nov 18, 2014 at 7:24 PM, Bruno Lauz=C3=A9 wrot= e: > Is there a reason for this: > > @wheeluser: rebootOperation not permitted@wheeluser: shutdown -r > nowSystem halt > What's the difference? > shutdown(8) does a clean shutdown; i.e. it runs all rc.d stop routines. Cleanly stopping some things can be critical things like database shutdown (and many other things). reboot(8) and halt(8) don't run these. They are intended as emergency tools and require root. membership inoperator is all that is required for shutdown. (Didn't realize wheel would do the trick. Or maybe your wheeladm is in the operator group, too.) It frequently surprises me how common it is for even long time FreeBSD users seem to be unaware of this and the danger of reboot/halt(8) for some systems. Of course, for many systems it will make no real difference. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com