Samba-PDC and Samba-2.0 setup on the same machine.

Matthias Klose doko at
Tue Sep 21 10:22:48 GMT 1999

I tried to summarize this setup in a FAQ entry [attached]; suggestions for
improvements and clarifications are welcome.

However I do have some questions with this setup:

- The machine has a second network card. How do I get the samba-pdc
  server listen on the second physical interface. When adding the
  interface to the interfaces parameter, then the samba-pdc listens on 
  all interfaces and I see the browse list of the samba-pdc on the
  interface, where the samba-20 should listen only.
  Do I have to setup a third server or can one of the servers listen
  on exactly two socket addresses?

- The samba-pdc (Linux, UTC) acts as a time server; although I set the 
  time offset to 60, the NT clients (net time \\samba-pdc) show the UTC 

- On the clients I can view the file permissions for the share
  exported by the samba-20 server. I am allowed to change permissions, 
  but they don't change on the server. Do I miss something?

- Which of the shares exported by the samba-pdc now can I move to the
  samba-20 server? (homes, netlogon, profiles ?)

Thanks for your help.


Howto setup a Samba PDC and a Samba 2.0 server on the same machine

This setup describes an setup of a Samba-2.0 and a Samba-2.1prealpha
server both running on the same machine; it works for me on a Debian
GNU/Linux machine. I got input from Gerald Carter, some things still
are not clear for me and I would like to incorporate your input into
this HOWTO.

Installing samba and samba-pdc

First samba-20 (2.0.x) and samba-pdc (2.1prealpha) must be configured
and setup, such that the installation does not overlap. You must have
separate files for:

	smbpasswd (not sure)
	smbpasswd (I symlinked it)
	/var/samba directory

If you are using a Debian GNU/Linux system, you can fetch the
samba-pdc and samba-pdc-common packages from
for this setup.

Network setup

Each server has to listen on it's own network interface. One of the
addresses can be a virtual interface address.

For the following descriptions I assume that the samba-pdc listens on
the primary network interface; the samba-20 listens on
the network interface, which is created (on Linux) with:

ifconfig eth0:0 netmask broadcast
route add -net

Samba configuration files

The two configuration files must have separate netbios names, lock
directories and log files. They can share the same passwd file and the
same domain.

For further information how to add the samba-20 machine to the domain,
please see the NT domain FAQ.

Configuration of samba-pdc:

   workgroup = DOMAIN
   socket address =
   server string = Samba %v
   netbios name = foo-pdc
   hosts allow = 192.168.10. 192.168.11. 127.
   security = user
   encrypt passwords = yes
   interfaces =   #
   local master = yes
   os level = 65
   domain master = yes
   preferred master = yes
   domain logons = yes
   wins support = yes
   time offset = 60
   time server = true

   comment = Home Directories
   browseable = no
   writable = yes

   comment = Network Logon Service
   path = /usr/local/samba/netlogon
   guest ok = no
   writable = no
   share modes = no
   # see
   locking = no
   public = no
   browseable = yes

   path = /var/local/samba/profiles
   browseable = no
   writable = yes
   guest ok = yes

Configuration of samba-20:

   workgroup = DOMAIN
   socket address =
   server string = Samba %v on %h
   netbios name = foo-20
   hosts allow = 192.168.10. 192.168.11. 127.
   security = domain
   encrypt passwords = yes
   interfaces =
   local master = no
   os level = 64
   wins server =

   comment = Test Share (exported by samba-20)
   path = /home/tst
   public = no
   writable = yes
   printable = no
   nt acl support = yes

More information about the samba-ntdom mailing list