Hello,
I want to run reboot as normal user using the following command:
dbus-send --system --print-reply --reply-timeout=2000 --type=method_call --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Reboot boolean:false
but I got a Permission denied error.
I checked that verify_shutdown_creds (in logind-dbus.c) calls bus_verify_polkit_async, could it be the reason why I got permission denied error while polkit is not installed?
I don't want to use Polkit or sudo, is there any solution ?
Best regards,
Mohamed Ali