Originally Posted by
TheFu
so both are deprecated and we should be using systemctl with specific options, it seems. That would complicate your sudoers file, but not mine. Allowing systemctl to be run with any available options could be really bad. Terrible. Lots of power in that command to which I wouldn't want just any casual admin to have access.
Actually, systemd turns it into a one-liner:
Code:
pkexec systemctl reboot --boot-loader-entry=windows
and you can easily configure polkit to allow the user to do only that action without a password. It is much less fragile than sudoers.
Bookmarks