Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52462 - dbus-daemon tries to run as unknown user
Summary: dbus-daemon tries to run as unknown user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest minor (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-30 07:26 UTC by Henning Günther
Modified: 2004-08-10 16:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to ebuild to add messagebus user. (dbus-0.21-r1.diff,416 bytes, patch)
2004-05-30 10:37 UTC, Stephen Bennett (RETIRED)
Details | Diff
Patch to add messagebus user in the gentoo way (dbus-r1.diff,351 bytes, patch)
2004-06-15 03:04 UTC, Sébastien ESTIENNE
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Günther 2004-05-30 07:26:13 UTC
The package dbus is currently masked, because the init script is not working. This is because the config file(/etc/dbus-1/system.conf) tries to run the daemon as user "messagebus". This user doesn't exist, because the ebuild doesn't create it.
See line 17-18 of the config-file:
<!-- Run as special user -->
<user>messagebus</user>

If you place "root" instead of "messagebus", the daemon starts as expected.
A general solution would be to let the ebuild create the user "messagebus"


Reproducible: Always
Steps to Reproduce:
Problem:
1. remove dbus from /usr/portage/profiles/package.mask
2. emerge dbus
3. /etc/init.d/dbus start
4. ps -A
5. find that dbus-daemon-1 is not in the list
Solution:
1. edit /etc/dbus-1/system.conf
2. change "<user>messagebus</user>" to <user>root</user>
3. /etc/init.d/dbus start
4. ps -A
5. find that dbus-daemon-1 IS in the list
Comment 1 Stephen Bennett (RETIRED) gentoo-dev 2004-05-30 10:36:17 UTC
The other alternative is to add the messagebus user in the ebuild. I've got a patch against dbus-0.21.ebuild to do that.
Comment 2 Stephen Bennett (RETIRED) gentoo-dev 2004-05-30 10:37:17 UTC
Created attachment 32326 [details, diff]
Patch to ebuild to add messagebus user.
Comment 3 foser (RETIRED) gentoo-dev 2004-05-31 05:28:11 UTC
I know why it is not working, i just haven't had the time to fix it and it is no priority. It's in p.mask for exactly that reason, so i wonder why you put it as a blocker. In p.mask means : KNOWN NOT WORKING.

And your general direction is ofcourse right, but still implemented in a non Gentoo-ish way.
Comment 4 Sébastien ESTIENNE 2004-06-15 03:04:48 UTC
Created attachment 33300 [details, diff]
Patch to add messagebus user in the gentoo way

Patch to add messagebus user in the gentoo way
Comment 5 REdOG 2004-08-03 13:27:38 UTC
Even with the patch( to add the messagebus user) added I still get this error:

Failed to start message bus: Failed to bind socket "/var/lib/dbus/system_bus_socket": No such file or directory

Should the ebuild create this "file"? or is it part of devfs? I am currently useing udev. 
Comment 6 foser (RETIRED) gentoo-dev 2004-08-10 16:07:55 UTC
ok added a fix to add user/group (this should be done preinst btw).

@redog : afaik it should be created on the fly if it isn't there

Please test, i'll leave it in p.mask this version at least.