git: 572cb0ae4680 - stable/12 - shutdown.8: Add a note about needed priviledges to run the command

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Mon, 14 Nov 2022 07:58:31 UTC
The branch stable/12 has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=572cb0ae4680d0ec2811f6093524ec75658176f7

commit 572cb0ae4680d0ec2811f6093524ec75658176f7
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-11-07 11:00:11 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-11-14 07:58:20 +0000

    shutdown.8: Add a note about needed priviledges to run the command
    
    In order to use the shutdown command, the user must
    have root privileges or be a member of the operator group.
    
    PR:             266525
    Reported by:    Zsolt Udvari <uzsolt at uzsolt hu>
    Reviewed by:    pauamma
    Differential Revision:  https://reviews.freebsd.org/D36688
    
    (cherry picked from commit e0dfa1c4c45ec1b787020c99310c36aec9d9007b)
---
 sbin/shutdown/shutdown.8 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sbin/shutdown/shutdown.8 b/sbin/shutdown/shutdown.8
index 0deeb8dac594..8b136872df53 100644
--- a/sbin/shutdown/shutdown.8
+++ b/sbin/shutdown/shutdown.8
@@ -28,7 +28,7 @@
 .\"     @(#)shutdown.8	8.2 (Berkeley) 4/27/95
 .\" $FreeBSD$
 .\"
-.Dd January 1, 2018
+.Dd November 7, 2022
 .Dt SHUTDOWN 8
 .Os
 .Sh NAME
@@ -56,6 +56,10 @@ utility provides an automated shutdown procedure for super-users
 to nicely notify users when the system is shutting down,
 saving them from system administrators, hackers, and gurus, who
 would otherwise not bother with such niceties.
+In order to use the
+.Nm
+command, the user must have root privileges or be a member of the
+operator group.
 .Pp
 The following options are available:
 .Bl -tag -width indent