Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52462

Summary: dbus-daemon tries to run as unknown user
Product: Gentoo Linux Reporter: Henning Günther <der_eq>
Component: New packagesAssignee: foser (RETIRED) <foser>
Status: RESOLVED FIXED    
Severity: minor    
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to ebuild to add messagebus user.
Patch to add messagebus user in the gentoo way

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.