Re:I wish systemd logged information about the source of “tr...
by usr1106 on Wednesday November 24, 2021 @03:41AM
(#29328053)
Sure, but some systems do poweroff without being root. Has happened to me, don't remember the details. Maybe a polkit thing because users are supposed to shut down their own laptop?
[ Parent
| on HN ]
Re:I wish systemd logged information about the source of “tr...
by CraigJPerry on Wednesday November 24, 2021 @04:12AM
(#29328226)
Yeah true, if the user is logged on via a physical tty or local X session (i.e. the policykit subject.local attribute == true) then in some distros they will get permission to shutdown or reboot.
They won’t have the permission if connected remotely though.