[Samba] Multiple Nics / Multiple Workgroups
George Peverill
gpeverill at ns.sympatico.ca
Mon Sep 9 11:10:01 GMT 2002
Can someone send me some example configs etc for
a 3 nic card , 3 workgroup setup
(ie : 192.168.10.x is workgroup sso, 192.168.32.x is nscc , 192.168.64.x
is crc)
I want each to be basically separate from the next (when used this way
does it even pay attention to the workgroup = in the global of each
conf file?)
so far I have a smb.conf / smb.conf.nscc / smb.conf.sso
#======================= Global Settings
=====================================
[global]
netbios aliases = sso nscc crc
log file = /usr/local/samba/var/log.%m
max log size = 50
security = user
encrypt passwords = yes
socket options = TCP_NODELAY
local master = yes
os level = 33
preferred master = yes
include = /usr/local/samba/lib/smb.conf.%m
then smb.conf.crc
=================================================================
[global]
workgroup = WORKGROUP
server string = CRC_Samba
hosts allow = 192.168.10.
bind interfaces only = yes
log file = /usr/local/samba/var/crc/log.%m
lock directory = /usr/local/samba/var/crc/locks/
interfaces = 192.168.10.1 127.0.0.1/8
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# Start shares here
[crc]
path = /storage/crc
public = no
only guest = no
writable = yes
printable = no
force create mode = 0744
force directory mode = 0744
smb.conf.nscc
[global]
workgroup = NSCC
server string = NSCC_Samba
hosts allow = 192.168.32.
bind interfaces only = yes
log file = /usr/local/samba/var/nscc/log.%m
lock directory = /usr/local/samba/var/nscc/locks/
interfaces = 192.168.32.1 127.0.0.1/8
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# Start shares here
[nscc]
path = /storage/nscc
public = no
only guest = no
writable = yes
printable = no
force create mode = 0744
force directory mode = 0744
[global]
workgroup = SSO
server string = SSO_Samba
hosts allow = 192.168.64.
bind interfaces only = yes
log file = /usr/local/samba/var/sso/log.%m
lock directory = /usr/local/samba/var/sso/locks/
interfaces = 192.168.64.1 127.0.0.1/8
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# Start shares here
[sso]
path = /storage/sso
public = no
only guest = no
writable = yes
printable = no
force create mode = 0744
force directory mode = 0744
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba
mailing list