Public bug reported:

Binary package hint: samba

With a probably "non standard" /etc/passwd et al:

Adding group `sambashare' (GID 113) ...
Done.
Adding user `root' to group `sambashare' ...
Adding user root to group sambashare
Done.
adduser: The user `rootsh' does not exist.
/var/lib/dpkg/info/samba.postinst: 118: !getent: not found
dpkg: error processing samba (--configure):
 subprocess installed post-installation script returned error exit status 127

This change seems to fix the error:

--- samba.postinst.old  2010-05-06 11:14:40.056375778 +0200
+++ samba.postinst      2010-05-06 11:15:03.826382587 +0200
@@ -111,7 +111,7 @@
                IFS=","
                for USER in `getent group admin | cut -f4 -d:`; do
                        adduser "$USER" sambashare \
-                       || !getent passwd "$USER" >/dev/null
+                       || ! getent passwd "$USER" >/dev/null
                done
                IFS="$OLDIFS"
        fi

samba version: 2:3.4.7~dfsg-1ubuntu3 (Ubuntu 10.04)

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

-- 
error (bashism?) in postinst
https://bugs.launchpad.net/bugs/576307
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to