poweroff command stopped working after upgrade to fedora24
While connected through ssh I try the poweroff command on a fedora23 system and It works perfectly:
$ poweroff
==== AUTHENTICATING FOR org.freedesktop.login1.power-off ===
Authentication is required for powering off the system.
Authenticating as: Pepe (pepe)
Password:
==== AUTHENTICATION COMPLETE ===
Connection to uriel closed by remote host.
Connection to uriel closed.
I try the same on a fedora24 system which is virtually identical and I get:
$ poweroff
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to start poweroff.target: Interactive authentication required.
See system logs and 'systemctl status poweroff.target' for details.
Failed to open /dev/initctl: Permission denied
Failed to talk to init daemon.
Once I do $ sudo poweroff
It works. If I type the command poweroff
directly on the computer It works no problem, this only happens when connected through ssh and only on my fedora24 systems.
I look at the:
$ systemctl status poweroff.target
● poweroff.target - Power-Off
Loaded: loaded (/usr/lib/systemd/system/poweroff.target; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd.special(7)
And its the same on my fedora23 and fedora24 systems. My question is, is this the way it is going to work now? Is it a bug? Am I missing something? This started happening immediatly after I upgraded to fedora24, and I am up to date with the updates. Thanks.