[Adduser-devel] [Pkg-utopia-maintainers] Bug#477759: Bug#477759: dbus: postinst script notice

Michael Biebl biebl at debian.org
Mon Sep 22 12:48:40 UTC 2008


Alexander Davydenko wrote:
> -----   Original Message   -----
> From:    <biebl at 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 at 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 at 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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080922/a412af1e/attachment.pgp 


More information about the Adduser-devel mailing list