Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10109 - dbus install script can't create user

Attached to Project: Arch Linux
Opened by Sigmund Lahn (gnud) - Monday, 07 April 2008, 22:48 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 08 April 2008, 10:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The dbus install script can't create user.

The post_install() part of dbus.install contains the following:
post_install() {
getent group dbus >/dev/null || usr/sbin/groupadd -g 81 dbus
getent passwd dbus >/dev/null || usr/sbin/useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus
usr/bin/passwd -l dbus &>/dev/null
dbus-uuidgen --ensure
}

/usr/sbin/useradd does not allow you to create users with ambigous UIDs unless you specify the -o flag, so creating the dbus user fails.

Change the second line of post_install() to
getent passwd dbus >/dev/null || usr/sbin/useradd -o -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus
to resolve this issue.

Additional info:
* package version(s)
Current CVS HEAD (updated Wed Mar 12 19:53:50 2008 UTC)
* config and/or log files etc.
N/A


Steps to reproduce:
userdel dbus
groupdel dbus
pacman -S dbus

This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 08 April 2008, 10:59 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Tuesday, 08 April 2008, 10:06 GMT
Ehm, what other userid do you have with uid 81? This is not a bug, uid 81 is reserved for dbus on archlinux, so if it's taken and causes the install scriptlet to fail, it's a bug on your own system, not in the dbus package.
Comment by Sigmund Lahn (gnud) - Tuesday, 08 April 2008, 10:38 GMT
Ok, i dont know where my head was last night.
Appearently my user for the freenx package had a UID of 81 -- in the newer packages, it' 85. I don't know why it was still 81 at my end.
Sorry -- instead of suggesting a hack, i should have asked why this collision would happen. I never added any users myself, besides the normal user with UID 1000.
So I have no idea how this happened, and if others who installed the freenx package ages ago (like I did) migth be in jeopardy :f

Anyway, fixed for me, and if it is a bug, its not the one outlined in my original description :)

Loading...