View Full Version : DBus root access?

11th December 2009, 07:02 AM
There have been a few occasions where I would like to (gracefully) log a gnome session out as root. I have found the following snip-it that should do the trick

dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1

However root does not have access to the users dbus server. Is there an easy way to get access to this? There are a few other dbus commands I would like to do as root.

Any help would be greatly appreciated.