You can clone with
# Suspend, hibernate, restart or shutdown the computer without sudo!
# by Chris Wong
# Released to the public domain.
echo "Usage: $NAME suspend|hibernate|restart|shutdown"
exit 42 # :D
if [ $# -ne 1 ] ; then
THINGY_UPOWER="dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower"
THINGY_CONSOLEKIT="dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager"
case $1 in
Requires authentication as of Ubuntu 12.04.
@tenleftfingers I'm using 12.04 right now, and I've never had to authenticate. It should act as though you chose the corresponding option in the GUI. Screenshot?
I have the same authorization problem:
Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Authorization is required
I'm trying to resolve this but with no success.