Skip to content

halt/poweroff/reboot are not identical to systemctl %s with respect to non-root users #213

@intelfx

Description

@intelfx

Verbs systemctl halt, systemctl poweroff and systemctl reboot, if invoked under a non-root user and logind is not available, are governed by polkit action org.freedesktop.systemd1.manage-units.

(For systemctl halt logind is obviously never available, as there's no corresponding bus method.)

However, halt, poweroff and reboot in the same conditions say "Must be root." and bail out. Shouldn't they be equivalent to systemctl %s in this regard?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingsystemctl

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions