Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 23:32:25 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        =?UTF-8?B?QnJ1bm8gTGF1esOp?= <brunolauze@msn.com>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: reboot on wheel
Message-ID:  <CAN6yY1tXO-B_Ab4u9iggRJf-Vo6FHBz7SHaCFaRX-MHL2eXnUg@mail.gmail.com>
In-Reply-To: <BLU179-W50B3A97CF3A7DDA8F516D9C6890@phx.gbl>
References:  <BLU179-W50B3A97CF3A7DDA8F516D9C6890@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, Nov 18, 2014 at 7:24 PM, Bruno Lauzé <brunolauze@msn.com> wrote:

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1tXO-B_Ab4u9iggRJf-Vo6FHBz7SHaCFaRX-MHL2eXnUg>