D-Bus is killing me

Thiago Macieira thiago at kde.org
Sun Dec 17 16:36:37 PST 2006

Timothy Vismor wrote:
>On 12/17/06, Matthew Johnson <dbus at matthew.ath.cx> wrote:
>> Generally you cannot access a session bus as root. This is because
>> root normally doesn't run a session bus and you cannot connect to the
>> session bus as any user other than the one which owns it. sudo <dbus
>> process> just doesn't work. This is a security measure.
>Gnome VFS uses D-Bus. If you decide you want to edit a system
>configuration file with gedit, you can't
>sudo gedit
>then navigate to the config file with the file chooser. Instead, you
>must log out of your user account and log in as  root via GDM to use
>gedit with enhanced privileges. This seems like a big security gain.
>Maybe I'm missing something.

You can do this:

su - -c 'gedit'

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20061218/7b649f2c/attachment.pgp

More information about the dbus mailing list