Can you block binary file by using PolKit? For example reboot how can you block it by using Polkit , is there any options to do it by using only Polkit ?
sudo systemctl mask reboot.target
might be more effective. However, there are many ways of rebooting a PC[1] (including pulling the power cord). I’m not sure you can really block them all.
I’m sure PolKit cannot block all reboot methods.
1 Like
No i asked about an option to block it by using PolicyKit to do it
It cannot be done.
Thanks !!!