three domains with one samba machine?

Ryan Booz ryanbooz at alumni.psu.edu
Fri Sep 8 21:45:33 GMT 2000


Hey all,

I've been doing some research about domains.  I need to set up at least
to domains from the samba server, one for office and one for lab.  The
one I use now is LAB.  I've got two different addresses bound to the
network card, but when I try and start two different Samba daemons,
things go a little screwy.

I have separate smb.conf files for each which I specify at the command
line (-s smb.conf.elem or smb.conf.lab), and I make sure that I've
cleared out the pid files in /var/lock/samba so that things start ok.
When I first start the second daemon (the main samba server is started
from init.d at startup) the clients lose all the network neighborhood,
yet I can log in fine.  Within a few seconds, a workgroup of ELEM
appears, but nothing else.  Eventually everything comes back on line,
accept the ELEM workgroup (domain).  Even when I set a machine to log
into ELEM domain, it appears to log into LAB because my shares are the
same, even though I do not create some of those shares in the ELEM
group.  Nothing seems to be interfering, but I can't get anything to log
on to ELEM.  Any help is appreciated.

I'll include both smb.conf files below signature.  Thanks!

Ryan Booz
Tech Coordinator
Belleville Mennonite School

----------------- smb.conf.lab -----------------------------
# Global parameters
[global]

#this is the global section of the conf file.  It sets parameters for
the
#overall machine.
    workgroup = LAB
    netbios name = SERVER
    server string = File and Auth. Server
    interfaces = 192.168.0.1
    bind interfaces only = yes
#
#password encryption for Win 95/98 computers
#
    encrypt passwords = yes
    unix password sync = yes
    smb passwd file = /etc/smbpasswd
    passwd program = /usr/bin/passwd %u
    passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password*
%n\n *passwd:*all*authentication*tokens*updated*successfully*
;       passwd chat debug = Yes
#
#log files and settings for logs of computer connections
#
    log file = /var/log/samba/log.%m
    max log size = 50
    debug level = 2

    name resolve order = wins lmhosts bcast
#
#General settings for the connections with reguard to network
#
    deadtime = 10
    keepalive = 60
    socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=8192
SO_SNDBUF=8192
    load printers = no
    logon home = \\%L\%U\profile
    logon script = %G.bat
    unix realname = yes
#
# Domain login settings.  With these, we will always win election!
#
    domain logons = Yes
    security = user
    os level = 65
    preferred master = yes
    domain master = yes
    dns proxy = No
    wins proxy = Yes
    wins support = yes

    short preserve case =
    map to guest = never
    password level = 0
    null passwords = no

#================ Share Definitions ===============================

[homes]
    comment = Home Directoory
    read only = No
    create mask = 0700
    directory mask = 0700
    browseable = no
    hide dot files = yes
    veto files = /.bash*/.k*/.x*/
    oplocks = no
    locking = no
    share modes = no

[netlogon]
    comment = Network Logon Service
    path = /home/samba/netlogon/%G
    write list = booz leon
    admin users = booz leon
    writeable = no
    browsable = yes
    case sensitive = no
    locking = No
    share modes = no
    guest ok = no
;    hide files =
;    dont descend =

;[profiles]
;    path = /pchome/%G/%U/profile
;    create mask = 0700
;    directory mode = 0700
;    browseable = yes
;    writable = yes

[admin]
    comment = Root on server
    path = /
    valid users = booz leon
    admin users = booz leon
    read only = No
    create mask = 0700
    browseable = No

[tmp]
    root preexec = /etc/smblogs %U %m
    comment = Temporary file space
    path = /pchome/tmp
    read only = No
    create mask = 0755
    guest ok = Yes
    root postexec = /etc/smblogsout %U %m

[scripts]
    path = /home/samba/netlogon
    create mask = 0755
    admin users = booz leon
    write list = booz leon
    valid users = booz leon
    browseable = No

[adm_temp]
    comment = Administration temp directory
    path = /pchome/adm_temp
    valid users = booz leon
    write list = booz leon
    admin users = booz leon
    writable = yes
    browseable = No

[wp]
    path = /pchome/classes/wp
    valid users = +wp +adm
    force create mode = 0444
    browseable = No
    writable = yes

[comp_app]
    path = /pchome/classes/comp_app
    browseable = No
    writable = yes
    valid users = +adm +capp_2 +capp_1
    force create mode = 0770
    force directory mode = 0770

[atrt]
    path = /pchome/classes/atrt
    read only = No
    force create mode = 0777
    force directory mode = 0777
    guest ok = Yes
    browseable = no
    oplocks = No
    share modes = no
    locking = no

[quill]
    path = /pchome/classes/quill
    writable = yes
    valid users = +quill +adm +teacher
    write list = +quill +adm +teacher
    browseable = no
    force create mode = 0770
    force directory mode = 0770

[yearbook]
    path = /pchome/classes/yearbook
    writable = yes
    valid users = +yearbook +adm +teacher
    write list = +yearbook +adm +teacher
    browseable = no
    force create mode = 0770
    force directory mode = 0770


=================================end smb.conf.lab
========================

----------------------smb.conf.elem -----------------------------
# Global parameters
[global]

#this is the global section of the conf file.  It sets parameters for
the
#overall machine.
    workgroup = ELEM
    netbios name = SERVER
    server string = File and Auth. Server
    interfaces = 192.168.0.3
    bind interfaces only = yes
#
#password encryption for Win 95/98 computers
#
    encrypt passwords = yes
    unix password sync = yes
    smb passwd file = /etc/smbpasswd
    passwd program = /usr/bin/passwd %u
    passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password*
%n\n *passwd:*all*authentication*tokens*updated*successfully*
;       passwd chat debug = Yes
#
#log files and settings for logs of computer connections
#
    log file = /var/log/samba/log.%m.elem
    max log size = 50
    debug level = 2

    name resolve order = wins lmhosts bcast
#
#General settings for the connections with reguard to network
#
    deadtime = 10
    keepalive = 60
    socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=8192
SO_SNDBUF=8192
    load printers = no
    logon home = \\%L\%U\profile
    logon script = %G.bat
    unix realname = yes
#
# Domain login settings.  With these, we will always win election!
#
    domain logons = Yes
    security = user
    os level = 65
    preferred master = yes
    domain master = yes
    dns proxy = No
    wins proxy = Yes
    wins support = yes

;    short preserve case =
    map to guest = never
    password level = 0
    null passwords = no

#================ Share Definitions ===============================

[homes]
    comment = Home Directoory
    read only = No
    create mask = 0700
    directory mask = 0700
    browseable = no
    hide dot files = yes
    veto files = /.bash*/.k*/.x*/
;    oplocks = no
;    locking = no
;    share modes = no

[netlogon]
    comment = Network Logon Service
    path = /home/samba/netlogon/%G
    write list = booz leon
    admin users = booz leon
    writeable = no
    browsable = yes
    case sensitive = no
    locking = No
    share modes = no
    guest ok = no
;    hide files =
;    dont descend =

;[profiles]
;    path = /pchome/%G/%U/profile
;    create mask = 0700
;    directory mode = 0700
;    browseable = yes
;    writable = yes

[admin]
    comment = Root on server
    path = /
    valid users = booz leon
    admin users = booz leon
    read only = No
    create mask = 0700
    browseable = No

[tmp]
    root preexec = /etc/smblogs %U %m
    comment = Temporary file space
    path = /pchome/tmp
    read only = No
    create mask = 0755
    guest ok = Yes
    root postexec = /etc/smblogsout %U %m

[scripts]
    path = /home/samba/netlogon
    create mask = 0755
    admin users = booz leon
    write list = booz leon
    valid users = booz leon
    browseable = No

[adm_temp]
    comment = Administration temp directory
    path = /pchome/adm_temp
    valid users = booz leon
    write list = booz leon
    admin users = booz leon
    writable = yes
    browseable = No


============================ end smb.conf.elem =======================










More information about the samba-ntdom mailing list