Desiable shutdown for users
Hello! Halt on Linux is disabled for average user by default. It will try to request sudo/root password and if fails returns:
sasha@fedora:~$ systemctl halt
Call to Halt failed: Access denied
How can I make same behavior for poweroff action? I know it is possible somehow via PolicyKit rulle
You are viewing a single comment
Thank you, it works! But I got weird behavior:
systemctl restart sddm
from tty and it will work again) How can I fix this bugs?Sorry, I have no idea.
SDDM main process is running as root and ignores all policies. So only way is modifying SDDM source code(