Sample Header Ad - 728x90

How do DE's call ACPI functions?

6 votes
1 answer
647 views
Okay, first off, this is not a problem I am facing, but I would like to understand this better. If I wish to shutdown / reboot my machine from the command line I need to call: $ sudo poweroff $ sudo reboot That is, I need root privileges to make these ACPI calls. However, I start my DE, (I use XFCE) without granting it root privileges: $ startxfce4 --with-ck-launch Now, I know that the --with-ck-launch parameter helps allows XFCE to shutdown / reboot my system, but I do not understand how. What allows ConsoleKit to shutdown without root privileges? How can it change the runlevel without super-user privileges? And since it is possible, how can I shutdown my machine from the console without root privileges?
Asked by darnir (4569 rep)
Aug 12, 2012, 08:09 AM
Last activity: Aug 13, 2012, 04:00 PM