[Bug 199209] root cannot run kde4 applications from the command line without using dbus-launch
Thomas Zander
zander at kde.org
Mon Jul 4 10:04:58 BST 2011
https://bugs.kde.org/show_bug.cgi?id=199209
Thomas Zander <zander at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |zander at kde.org
Resolution| |WORKSFORME
--- Comment #14 from Thomas Zander <zander kde org> 2011-07-04 09:04:57 ---
I would add my vote that this can be closed as "WORKSFORME".
Using just 'su' without the minus (dash) is not expected to work; it would be a
big security issue if you would make it work, if I understand correctly.
Here is why;
Using 'su' keeps the environment but substitutes the user. part of this
environment is the variable; DBUS_SESSION_BUS_ADDRESS and this points to a bug
session bus created specifically for the original user.
Not changing this env var but replacing your user means that another user tries
to connect to the dbus session reserved for the original user, which then is
rejected with a
'the message bus security policy blocked the reply'
A proper solution would be to force a new session bus to be created for the
substitute user.
Either do an su with a login shell, or unset the mentioned dbus variable before
starting your app as another user.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list