Sam Napolitano
1999-Feb-03 22:29 UTC
[Q] Running 2 smbds bound to different interfaces on one machine?
Hi, 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 = 172.28.10.65/255.255.255.0 bind interfaces only = Yes security = USER [homes] comment = Home Directories ::: Config_B ::: # Start with: /usr/local/samba/bin/smbd -D -s Config_B # Global parameters interfaces = 172.28.10.66/255.255.255.0 bind interfaces only = Yes security = SHARE [printers] 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. Thanks, Sam sam@Progressive-Systems.com