Here's a simple patch for this.  I had some unreproducible problems that seem 
to be caused by the winbind_privileged directory not existing by the time 
chgrp is run.  Could others test this?
diff -Nur ../../trunk/winbind.init debian/winbind.init
--- ../../trunk/winbind.init	2006-05-31 15:32:04.000000000 +0200
+++ debian/winbind.init	2006-06-01 14:01:25.000000000 +0200
@@ -20,7 +20,8 @@
 	start)
 		log_daemon_msg "Starting the Winbind daemon" "winbind"
 
-		start-stop-daemon --start --quiet --exec $DAEMON
+		start-stop-daemon --start --quiet --exec $DAEMON \
+		&& chgrp winbind /var/run/samba/winbindd_privileged/
 
 		log_end_msg $?
 		;;
diff -Nur ../../trunk/winbind.postinst debian/winbind.postinst
--- ../../trunk/winbind.postinst	1970-01-01 01:00:00.000000000 +0100
+++ debian/winbind.postinst	2006-06-01 13:16:56.000000000 +0200
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+getent group winbind >/dev/null 2>&1 ||
+	addgroup --system winbind
+
+#DEBHELPER#

Reply via email to