Page MenuHomeFreeBSD

shutdown.8: Add a note about needed priviledges to run the command
ClosedPublic

Authored by gbe on Sep 24 2022, 9:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 3:54 PM
Unknown Object (File)
Fri, Nov 1, 2:31 AM
Unknown Object (File)
Sep 29 2024, 2:26 AM
Unknown Object (File)
Sep 29 2024, 2:25 AM
Unknown Object (File)
Sep 29 2024, 2:24 AM
Unknown Object (File)
Sep 29 2024, 12:23 AM
Unknown Object (File)
Sep 26 2024, 12:51 PM
Unknown Object (File)
Sep 24 2024, 9:11 AM

Details

Summary

In order to use the shutdown command the user must have root
privileges or have a membership in the operator group.

PR: 266525
Reported by: Zsolt Udvari <uzsolt at uzsolt hu>
MFC after: 1 week

Test Plan

mandoc output review and 'mandoc -Tlint' checks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gbe requested review of this revision.Sep 24 2022, 9:01 AM

Other than that wording simplification, LGTM.

sbin/shutdown/shutdown.8
61–62

Unless you mean something different by "have root privileges".

This revision now requires changes to proceed.Sep 24 2022, 8:36 PM
gbe marked an inline comment as done.Nov 6 2022, 10:28 AM

Reword sentence.

sbin/shutdown/shutdown.8
61–62

Unless you mean something different by "have root privileges".

'root privileges' is the better term here, since everything uid = 0 could be root, no matter what the username is. These privileges could also be obtained via doas or sudo.

Fixable on commit.

sbin/shutdown/shutdown.8
61
This revision is now accepted and ready to land.Nov 6 2022, 12:38 PM
This revision was automatically updated to reflect the committed changes.
gbe marked an inline comment as done.