tags 240287 confirmed pending
thanks

Hi, Andre,

> As it turns out, the "not a system group" bug has resurfaced. I'm not sure
> which version did it, but it is a problem in 1.5.3.4870-7. A fresh install
> resulted in this config:
> 
> db-fb1:/# id firebird
> uid=100(firebird) gid=1000(firebird) groups=1000(firebird)

Yes, this is caused by the following code in .preinst:

    testStr=`grep firebird /etc/group`
    if [ -z "$testStr" ]; then
        echo "Adding fireibird group" >&2
        addgroup firebird
        grep '^firebird:' /etc/group 2>/dev/null 1>&2
    fi

    testStr=`grep firebird /etc/passwd`
    if [ -z "$testStr" ]; then
        echo "Adding firebird user" >&2
        adduser --system --shell /bin/bash --home /var/lib/firebird2 \
                --ingroup firebird --gecos "Firebird Database
Administator" firebird
        grep '^firebird:' /etc/passwd 2>/dev/null 1>&2
    fi

which, as you can see, adds the group without the --system option. Doh!

Looking at this, I think it is mush better written as

   adduser --system --group --others...  firebird

which will create both a user and a group (bith system ones).

Fix is pending.

Many thanks for your report.


dam
-- 
Damyan Ivanov                           Modular Software Systems
[EMAIL PROTECTED]
phone +359(2)928-2611, 929-3993              fax +359(2)920-0994
mobile +359(88)856-6067             [EMAIL PROTECTED]/Gaim

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to