0
Is it possible to allow "systemctl halt" for all users?
Currently only the commands:
systemctl poweroff & systemctl reboot work on my system (Debian Jessie)
When I call systemctl halt as a normal user, I get the following message:
Failed to start halt.target: Access denied
I tried the following methods:
- Method - I tried to add a new action in: /usr/share/polkit-1/actions/org.freedesktop.login1.policy
I copied the action
<action id="org.freedesktop.login1.power-off"> to
<action id="org.freedesktop.login1.halt">
- Method (and which worked) was to chmod u+s /sbin/halt but because /sbin/halt is a link to -> /bin/systemctl this is probably not a good idea
Note that
halt
andsystemctl halt
are two different commands. Even if one's a symlink to the other, they still behave differently. – user1686 – 2016-05-26T13:00:37.620