Michael Biebl
2008-Sep-22 12:48 UTC
Re: [Pkg-utopia-maintainers] Bug#477759: Bug#477759: dbus: postinst script notice
Alexander Davydenko wrote:> ----- Original Message ----- > From: <biebl@debian.org> on behalf of *Michael Biebl* > Sent: Sun, 21 Sep, 2008 at 02:54 +0200 > Subject: Re: [Pkg-utopia-maintainers] Bug#477759: dbus: postinst script notice > >> Hi Alex, >> >> please always CC the bug report ! >> >> Alexander Davydenko wrote: >>> ----- Original Message ----- >>> From: <biebl@teco.edu> on behalf of *Michael Biebl* >>> Sent: Fri, 25 Apr, 2008 at 05:15 +0200 >>> Subject: Re: [Pkg-utopia-maintainers] Bug#477759: dbus: postinst script notice >>> >>>> Quoting Alexander Davydenko <alex@topconps.org>: >>>>> The postinst script on configure stage try to adduser, >>>>> which is present on system, as such package installation failed. >>>> I haven''t fully understood you, but adduser does *not* fail, if the >>>> messagebus user is already present. If it does, it is a bug in adduser >>>> [1]. >>>> >>>> Could you post the complete error message of adduser please? >>>> Could you explain in more detail what went wrong. >>>> >>>> >>>> >>>> [1] Do you have NIS or LDAP, and the messagebus user stored in ldap? >>> Please consider output of attached s.sh, if the user exists output >>> is ''The user `messagebus'' already exists. Exiting.'' and a whole script >>> exited because ''set -e''. >> Nope, that is not correct. adduser will *not* return an error if the >> user doesn''t exist (and the script you sent me does print Ok fwiw). >> >> Again, could you please send me the complete error message of the >> postinst script? >> Could it be, that you have a dbus user but no dbus group and so the >> chown fails? >> >> Michael >> -- >> Why is it that all of the instruments seeking intelligent life in the >> universe are pointed away from Earth? >> > ----- End original message ----- > Hi Michael, > > I will send output of postinst script next time I do upgrade. >> adduser will *not* return an error > # ~: getent passwd messagebus > messagebus:x:103:104::/var/run/dbus:/bin/false > # ~: getent group messagebus > messagebus:x:104: > # ~: adduser --system --home /var/run/dbus --no-create-home --disabled-password --group messagebus ; echo $? > The user `messagebus'' already exists. Exiting. > 1 >Now that is interesting. I''m also running a unstable system. This is what I get (and according to the adduser man page, the expected behaviour) # adduser --system --home /var/run/dbus --no-create-home --disabled-password --group messagebus ; echo $? The system user `messagebus'' already exists. Exiting. 0 Do you have a locally installed/modified adduser package? What does "debsums -a adduser" [1] say? What is the output of "whereis adduser"? This is what the adduser man page has to say: EXIT VALUES 0 The user exists as specified. This can have 2 causes: The user was created by adduser or the user was already present on the system before adduser was invoked. Invoking adduser a second time with the same parameters as before also returns 0. 1 Creating the user or group failed because it was already present with other UID/GID than specified. The username or groupname was rejected because of a mismatch with the configured regular expressions, see adduser.conf(5). Adduser has been aborted by a signal. Or for many other yet undocumented reasons which are printed to console then. You may then consider to remove --quiet to make adduser more verbose. This is the call in postinst: adduser --system \ --home dbus \ --no-create-home \ --disabled-password \ --group dbus I''ve CCed the adduser maintainers, maybe they can comment on this. Cheers, Michael [1] Install the debsums package for that -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? _______________________________________________ Adduser-devel mailing list Adduser-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/adduser-devel
Stephen Gran
2008-Sep-22 18:51 UTC
[Adduser-devel] [Pkg-utopia-maintainers] Bug#477759: Bug#477759: dbus: postinst script notice
This one time, at band camp, Michael Biebl said:> > I will send output of postinst script next time I do upgrade. > >> adduser will *not* return an error > > # ~: getent passwd messagebus > > messagebus:x:103:104::/var/run/dbus:/bin/false > > # ~: getent group messagebus > > messagebus:x:104: > > # ~: adduser --system --home /var/run/dbus --no-create-home --disabled-password --group messagebus ; echo $? > > The user `messagebus'' already exists. Exiting. > > 1Something here is wrong. If you pass --system, adduser will say "The system user", not "The user". The example below has the expected output, and the example above does not.> Now that is interesting. I''m also running a unstable system. This is > what I get (and according to the adduser man page, the expected behaviour) > > # adduser --system --home /var/run/dbus --no-create-home --disabled-password --group messagebus ; echo $? > The system user `messagebus'' already exists. Exiting. > 0 > > Do you have a locally installed/modified adduser package? What does > "debsums -a adduser" [1] say? > What is the output of "whereis adduser"?These are my thoughts - I suspect there is an old copy somewhere or a broken install.> This is the call in postinst: > adduser --system \ > --home dbus \ > --no-create-home \ > --disabled-password \ > --group dbus > > I''ve CCed the adduser maintainers, maybe they can comment on this.That looks fine to me. You might want --quiet so it makes less scary noise, but that''s all I would recommend changing. -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran at debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080922/7c99c64e/attachment.pgp