Findings for installing Samba4 (alpha 18on Debian Squeeze

Nico de Haer nico.dehaer at
Sun Dec 18 09:42:07 MST 2011


I installed samba4 as described in, and would like to share my
There a few extra steps I had to take to make it work and I had some
results from the test that where unexpected.

1) Bind 9.8 could not find the needed libs
The problem: /usr/local/samba/lib and /usr/local/samba/lib/samba are not
part of the library search path
My solution: Add a file to /etc/ to let ldconfig know where
they are. I did this:

echo /usr/local/samba/lib > /etc/
echo /usr/local/samba/lib/samba >> /etc/

2) Output of smbclient -L localhost -U%
In addition to the expected output I also get:
REWRITE: list servers not implemented

3) samba_internal dns server broken?
I noticed that samba has a built-in dns server that can be used by
specifying --dns-backend=samba_internal during the provision stage. I had a
go at it but could not get it to work. The provision itself worked ok but
samba complains about a timeout when trying to update DNS. netstat -l shows
that there is no DNS server running. That obviously explains the timeout
but not why the dns server is not started. As I could not figure out how to
get it going I went for bind 9.8 (I used the version from debian sid)

All things considered, it went quite well and the howto is a great help!



More information about the samba-technical mailing list