[Q] Running 2 smbds bound to different interfaces on one machine?

Sam Napolitano sam at Progressive-Systems.Com
Wed Feb 3 22:29:31 GMT 1999


I am trying to setup two Samba daemons (smbd) on one machine.  I would
like to have one smbd use configuration file A and the second smbd use
configuration file B.

Configuration file A will be setup for users home directories and
would use security = USER.  Configuration file B is for a shared
printer and would use security = SHARE.

The machine running Samba has aliasing, so I thought I could bind
smbd_A to interface A and smbd_B to interface B.  What I tried (below)
didn't work.  The second smbd gives an error that another smbd is
already on the system and it can't create the lockfile.

[1999/02/03 11:56:28, 0] lib/pidfile.c:pidfile_create(86)
  ERROR: smbd is already running. File /usr/local/samba/var/locks/smbd.pid 
  exists and process id 635 is running.

::: Config_A :::

# Start with: /usr/local/samba/bin/smbd -D -s Config_A
# Global parameters
        interfaces =
        bind interfaces only = Yes
        security = USER

        comment = Home Directories

::: Config_B :::

# Start with: /usr/local/samba/bin/smbd -D -s Config_B
# Global parameters
        interfaces =
        bind interfaces only = Yes
        security = SHARE

        path = /var/tmp
        guest ok = Yes
        print ok = Yes

I am running 2.0.0 on SunOS 4.1.3_U1.
Any pointers would greatly be appreciated.

sam at Progressive-Systems.com

More information about the samba mailing list