D-Bus is killing me

Timothy Vismor vismor.td at gmail.com
Sun Dec 17 17:18:55 PST 2006


On 12/17/06, Mystilleef <mystilleef at gmail.com> wrote:
> On 12/18/06, Thiago Macieira <thiago at kde.org> wrote:
> > 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:
> > DBUS_SESSION_BUS_ADDRESS= sudo gedit
> >
>
> Fantastic! This works for my app.
>
> Thanks
>
+1


More information about the dbus mailing list