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)
Mar 8 2024, 3:47 AM
Unknown Object (File)
Mar 8 2024, 3:47 AM
Unknown Object (File)
Mar 8 2024, 3:47 AM
Unknown Object (File)
Mar 8 2024, 3:47 AM
Unknown Object (File)
Mar 8 2024, 3:35 AM
Unknown Object (File)
Feb 2 2024, 4:59 AM
Unknown Object (File)
Dec 20 2023, 7:50 AM
Unknown Object (File)
Dec 12 2023, 2:59 PM

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.