Please find attached the patch I just submitted an Ubuntu bug that
covers the same issue [1].

Note that libpam-smbpass also needs /var/lib/samba to be created, or
else it will fail rather badly (blocking all logins by segfaulting).

Hope this helps.

[1] https://bugs.launchpad.net/ubuntu/+source/samba/+bug/260687

-- 
Thierry Carrez
Ubuntu server team || Canonical Ltd.
diff -u samba-3.2.3/debian/samba-common.dirs samba-3.2.3/debian/samba-common.dirs
--- samba-3.2.3/debian/samba-common.dirs
+++ samba-3.2.3/debian/samba-common.dirs
@@ -2,4 +2,5 @@
 etc/dhcp3/dhclient-enter-hooks.d
 var/cache/samba
+var/lib/samba
 var/log/samba
 var/run/samba
diff -u samba-3.2.3/debian/samba.postrm samba-3.2.3/debian/samba.postrm
--- samba-3.2.3/debian/samba.postrm
+++ samba-3.2.3/debian/samba.postrm
@@ -2,7 +2,7 @@
 
 if [ "$1" = purge ]; then
 	rm -rf /var/cache/samba/browse.dat
-	rm -rf /var/lib/samba/
+	rm -rf /var/lib/samba/printers/
 	rm -rf /var/log/samba/log.nmbd* /var/log/samba/log.smbd* /var/log/samba/cores/
 	rm -rf /var/run/samba/nmbd.pid /var/run/samba/smbd.pid /var/run/samba/*.tdb
 

Reply via email to