smb.conf files for the PDC problem case

Richard Sharpe sharpe at ns.aus.com
Wed Jul 15 12:11:27 GMT 1998


Hi folks,

here is the smb.conf file for the system that is causing Windows NT servers
to be confused about who should be the PDC.

As you can see, domain master = no.  This is a Samba 1.9.18p4 system.

Any suggestions about what the problem is?

>Richard,
>        Here are a couple of smb.conf files as per our phone
>conversation.  The first is one we are currently running with on a
>multi-homed machine.  The second has some config changes that I tried
>to solve the problem but it appears I failed miserably :-(
>
>Firstly our "normal" config:
>
>[global]
>;   printing = sysv
>;   printcap name = /etc/printcap
>   load printers = no
>   guest account = nobody
>   security = server
>   workgroup = BAEA
>   netbios name = sbuxfs1
>   netbios aliases = bunya
>   server string = Salisbury UNIX Fileserver (BUNYA)
>   encrypt passwords = yes
>   password server = 150.207.4.60
>   domain logons = yes
>   wins support = no
>   wins server = 150.207.4.60
>;   # The next entry will answer WINS broadcast queries
>;   wins proxy = yes
>   name resolve order = wins host bcast lmhosts
>   domain master = no
>   local master = no
>   preferred master = no
>   remote announce = 150.207.4.255/BAEA
>   remote browse sync = 150.207.4.255 150.207.1.255
>   os level = 33
>   interfaces = 150.207.1.63/255.255.255.0 150.207.7.63/255.255.255.0 \
>                150.207.6.63/255.255.255.0 150.207.3.63/255.255.255.0
150.207.8.63/255.255.255.0 \
>                150.207.9.63/255.255.255.0 150.207.12.63/255.255.255.0
150.207.13.63/255.255.255.0 \
>                150.207.15.63/255.255.255.0
>   socket options = SO_KEEPALIVE SO_BROADCAST
>   getwd cache = yes
>   dead time = 10
>   wide links = no
>   log file = /usr/local/samba/var/bunya/logs/log.%m
>   debug level = 2
>   lock directory = /usr/local/samba/var/bunya/locks
>   smb passwd file = /usr/local/samba/private/smbpasswd
>   share modes = yes
> 
>[homes]
>   comment = %S Home Directory
>   browseable = no
>   read only = no
>   create mode = 0750
> 
>[shared]
>   comment = Shared data directory
>   path = /home/user/shared
>   public = no
>   writable = yes
>   browsable = yes
>   printable = no
>   create mask = 0775
> 
>[gw_oa]
>   comment = GroupWise Ancillary Files
>   path = /usr/local/oa
>   public = no
>   writable = yes
>   printable = no
> 
>[groupwis]
>   comment = GroupWise Post Offices
>   path = /usr/local/office
>   public = no
>   writable = yes
>   printable = no
> 
>[general]
>   comment = General Purpose stuff
>   path = /home/pc/general
>   public = no
>   writable = yes
>   printable = no
>
>[util]
>   comment = Utilities
>   path = /home/pc/util
>   public = no
>   writable = yes
>   printable = no
>
>[msoffice]
>   comment = MicroSoft Office
>   path = /home/pc/tender
>   public = no
>   writable = no
>   printable = no
>
>[MHC_PRISM]
>   comment = MHC members only
>   path = /home/user/EW/mhc_prism
>   public = no
>   writeable = yes
>   printable = no
>   create mask = 0770
> 
>[PARAKEET]
>   comment = PARAKEET members only
>   path = /home/user/parakeet
>   public = no
>   writeable = yes
>   printable = no
>   create mask = 0770
>
>[isd]
>   comment = IS Directory
>   path = /home/user/isd
>   public = no
>   writable = yes
>   printable = no
>   create mask = 0770
> 
>[PED]
>   comment = PED Directory (only group members of PED)
>   path = /home/user/PED
>   public = no
>   writable = yes
>   printable = no
>   create mask = 0770
>
>[CM]
>   comment = CM Directory
>   path = /home/user/cm
>   public = no
>   writable = yes
>   printable = no
>   create mask = 0770
>
>[mcad]
>   comment = mcad
>   path = /home/user/mcad
>   public = no
>   writable = yes
>   printable = no
>   create mask = 0770
>
>[user0]
>   comment = user0
>   path = /user0
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user1]
>   comment = user1
>   path = /user1
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user2]
>   comment = user2
>   path = /user2
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user3]
>   comment = user3
>   path = /user3
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user4]
>   comment = user4
>   path = /user4
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user5]
>   comment = user5
>   path = /user5
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user6]
>   comment = user6
>   path = /user6
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
>
>[user7]
>   comment = user7
>   path = /user7
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user8]
>   comment = user8
>   path = /user8
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user9]
>   comment = user9
>   path = /user9
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user10]
>   comment = user10
>   path = /user10
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user11]
>   comment = user11
>   path = /user11
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user12]
>   comment = user12
>   path = /user12
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user13]
>   comment = user13
>   path = /user13
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
> 
>[user14]
>   comment = user14
>   path = /user14
>   admin users = hwunderl dbradtbe
>   valid users = hwunderl dbradtbe
>   public = no
>   writable = yes
>   printable = no
>   
>
>===========================================================================
===
>and now one that I tweaked a bit:
>
>[global]
>;   printing = sysv
>;   printcap name = /etc/printcap
>   load printers = no
>   guest account = nobody
>   security = server
>   workgroup = BAEA
>   netbios name = kanji
>   server string = Holden Hill UNIX Fileserver (KANJI)
>   encrypt passwords = yes
>   password server = hhntfp1 tpntfp1 sbntfp1
>   domain logons = yes
>   wins support = no
>   wins server = 150.207.4.60
>   name resolve order = wins host bcast lmhosts
>   domain master = no
>   domain controller = no
>   local master = no
>   preferred master = no
>;   remote announce = 150.207.4.255
>;   remote browse sync = 150.207.4.255
>   interfaces = 150.207.176.60/255.255.255.0
>   bind interfaces only = true
>   socket options = SO_KEEPALIVE
>   getwd cache = yes
>   announce version = 2.0
>   os level = 16
>   dead time = 10
>   wide links = no
>   log file = /usr/local/samba/logs/log.%m
> 
>;  You will need a world readable lock directory and "share modes=yes"
>;  if you want to support the file sharing modes for multiple userspr
>;  of the same files
>   lock directory = /usr/local/samba/var/locks
>   share modes = yes
> 
>[homes]
>   comment = %S Home Directory
>   browseable = no
>   read only = no
>   create mode = 0750
>
>[opp20]
>   comment = Openplan stuff
>   path = /home/pc/opp20
>   public = no
>   writable = yes
>   printable = no
>   create mask = 0770
>
>[shared]
>   comment = Shared data directory
>   path = /home/user/shared
>   public = no
>   writable = yes
>   printable = no
>   create mask = 0770
>
>[hw1]
>    comment = Only hwunderl
>    browsable = no
>    path = /user0
>    valid users = hwunderl
>    public = no
>    writable = yes
>    printable = no
>
>[hw2]
>    comment = Only hwunderl
>    browsable = no
>    path = /user1
>    valid users = hwunderl
>    public = no
>    writable = yes
>    printable = no
>
>[hw3]
>    comment = Only hwunderl
>    browsable = no
>    path = /user2
>    valid users = hwunderl
>    public = no
>    writable = yes
>    printable = no
>
>[eosurv]
>    comment = Avery Hilditch
>;    browsable = no
>    path = /user1/shared/eosurv
>    valid users = ahilditc
>    public = no
>    writeable = yes
>    printable = no
>;    create mask = 0770
>
>[mcad]
>    comment = Avery Hilditch
>;    browsable = no
>    path = /home/user/mcad
>    valid users = ahilditc hwunderl
>    public = no
>    writeable = no
>    printable = no
>;    create mask = 0770
>
>[flir2b]
>    comment = Avery Hilditch
>;    browsable = no
>    path = /user1/shared/flir2b
>    valid users = ahilditc hwunderl
>    public = no
>    writeable = no
>    printable = no
>;    create mask = 0770
>
>[illowra]
>    comment = Avery Hilditch
>;    browsable = no
>    path = /user1/shared/illowra
>    valid users = ahilditc hwunderl
>    public = no
>    writeable = no
>    printable = no
>;    create mask = 0770
>
>-- 
>Brett Lymn, Computer Systems Administrator, British Aerospace Australia
>===========================================================================
====
>  +++ Divide By Cucumber Error.  Please Reinstall Universe And Reboot +++
>  - Hogfather, Terry Pratchett.
>
>

Regards
-------
Richard Sharpe, sharpe at ns.aus.com, NIC-Handle:RJS96
NS Computer Software and Services P/L, 
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080, 
Samba, Linux, Apache, Digital UNIX, AIX, Netscape, Stronghold, C, ...


More information about the samba-technical mailing list