Re: How to suspend/hibernate remote system without root

2009-11-08 Thread Ali Abdallah
Maxim Levitsky wrote: > dbus-send > --print-reply > --system --dest=org.freedesktop.DeviceKit.Power > /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend > > But it fails with 'not authorized' message. > Locally it works. > > You need to setup polkit authorization for the

How to suspend/hibernate remote system without root

2009-11-08 Thread Maxim Levitsky
I need to suspend/hibernate remote system, and I currently use an ugly sudo without passwork hack. Is this possible to do with devicekit? I have tried the dbus-send --print-reply --system --dest=org.freedesktop.DeviceKit.Power /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.S