In the FreeBSD documentation (https://docs.freebsd.org/en/books/handbook/boot/#boot-shutdown): "To reboot a FreeBSD system, use shutdown -r now. One must be root or a member of operator in order to run shutdown(8)." The manpage of shutdown (and poweroff) doesn't contain the information about "member of operator". IMHO should contain at least the sentence "One must be root or a member of operator in order to run shutdown(8)."
It would be nice (TM) if all the predefined groups were documented in a man page, then casses like this just have to reference it.
(In reply to Bob Bishop from comment #1) > predefined groups <https://github.com/freebsd/freebsd-src/blob/main/etc/group#L3-L39>, I guess.
(In reply to Graham Perrin from comment #2) Indeed, but no documentation of what they are for.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e0dfa1c4c45ec1b787020c99310c36aec9d9007b commit e0dfa1c4c45ec1b787020c99310c36aec9d9007b Author: Gordon Bergling <gbe@FreeBSD.org> AuthorDate: 2022-11-07 11:00:11 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2022-11-07 11:00:11 +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 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36688 sbin/shutdown/shutdown.8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=604610253c0c775d241416158f93c05cd227bfe0 commit 604610253c0c775d241416158f93c05cd227bfe0 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:53:42 +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(-)
A commit in branch stable/12 references this bug: 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(-)