Desiable shutdown for users
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're viewing a single thread.
View all comments
11
comments
What if you try another interface, like
shutdown -P now
orpoweroff -p
?6 1 ReplyThey all operates some way through systemd, so if operation is disabled via policy you cannot bypass it.
sasha@fedora:~$ /sbin/halt Call to Halt failed: Interactive authentication required.
5 0 Reply
You've viewed 11 comments.
Scroll to top