3

Possible Duplicate:
Difference between menu shutdown and 'shutdown -h now'

Why can ubuntu perform a shutdown from the GUI even though it is prive on the command line? By what mechanism does it do so?

awiebe
  • 131

1 Answers1

0

The mechanism seems to be a DBus message, sent to a process with root privileges. Taken from How can I make shutdown not require admin password?:

Shutdown:

dbus-send --system --print-reply --dest=org.freedesktop.Hal \
          /org/freedesktop/Hal/devices/computer \
          org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown
krlmlr
  • 3,337