[pkg-firebird-general] Bug#514379: firebird2.0-classic-common postinst script does not create proper user:group

Fabricio Cannini - Yahoo fcannini at yahoo.com.br
Fri Feb 6 22:25:57 UTC 2009


Package: firebird2.0-classic
Version: 2.0.3.12981.ds1-14~bpo40+1


When performing its instalation routines, the said script does not create the 
proper user:group tuple.
Hence, /usr/share/firebird2.0-common/functions.sh fails at the part shown below, 
approx. at line 40:

create_var_run_firebird()
{
    if ! [ -d $RUN ]; then
        mkdir --parent $RUN
        chmod 0770 $RUN
        chown firebird:firebird $RUN
    fi
}

Following this part, there are other functions of the script who does similar 
tasks, and also fail for the same reason.
Something like this, in firebird2.0-server-common.postinst, would solve the 
problem:


--- firebird2.0-server-common.postinst.orig 2009-02-06 19:57:49.854848585 -0200
+++ firebird2.0-server-common.postinst  2009-02-06 20:03:06.878848150 -0200
@@ -30,8 +30,10 @@

 checkFirebirdAccount() {

+    adduser --system --quiet --group firebird
+
     adduser --system --quiet --shell /bin/bash --home $VAR \
-        --group --gecos "Firebird Database Administator" firebird
+        --group firebird --gecos "Firebird Database Administator" firebird
}


Here's the packages data, installed on a etch server, with a few -backports 
packages:

root at apu:~# dpkg -l | grep firebird
ii  firebird2.0-classic  2.0.3.12981.ds1-14~bpo40+1
ii  firebird2.0-common  2.0.3.12981.ds1-14~bpo40+1 
ii  firebird2.0-server-common  2.0.3.12981.ds1-14~bpo40+1

TIA for your attention!





More information about the pkg-firebird-general mailing list