Samba
Daniel Mons
daniel.mons at iinet.net.au
Thu Oct 11 00:35:44 BST 2007
Add
preferred master = yes
os level = 50
To your /etc/samba/smb.conf . You will need to restart both SMB and NMB
for these to take effect (smb and nmb are controlled by a single init
file in Ubuntu, but under SuSE and some other distros they are two
separate init files).
Once again, "man smb.conf" will tell you all the available options, what
they mean, and why you might possibly need it.
And again, I simply cannot recommend highly enough this book:
http://www.samba.org/samba/docs/man/Samba-Guide/
It's available online and in paperback. I bought the paperback version
for myself and several business partners of mine as the proceeds go to
the Samba project. But in the spirit of free software, it's also
available online for free.
It goes through a number of real-world Samba examples from a small
home/office to a massive enterprise environment. Mandatory reading for
anyone wanting to learn more about Samba for any reason. I install a
large volume of Samba servers for a wide range of businesses - anything
from simple no-authentication file servers to full blown
LDAP-authenticated domain controllers, and this book is my bible.
-Dan
Blindraven wrote:
> Oh, and how do i set the machine to pref master with a high OS level? I
> know I could probably google that but incase the list ever needs the
> reference :P
>
> On 10/11/07, * Daniel Mons* <daniel.mons at iinet.net.au
> <mailto:daniel.mons at iinet.net.au>> wrote:
>
> Scott McKean wrote:
> > So there are two servers fighting for 'control' of the Samba network.
> > 'TONY-LINUX' and 'SERVER' from what I can tell.
>
> If that's the case, setting one of the machines with the "preferred
> master" directive and a high "OS level" (greater than 50 or so should
> set it straight) will solve that problem, and make one of the servers
> always win the master browser election for your network when NMB
> fires up.
>
> "man smb.conf" will explain what these mean, and why they need to be
> set. Likewise, John H. Terpstra's excellent "Samba 3 by Example" book
> will also explain why these need to be set:
> http://www.samba.org/samba/docs/man/Samba-Guide/
>
> (Don't they teach this sort of thing in RHCE courses?)
>
> But yes, we need complete config files and logs from all relevant
> machines. Both the log.smbd and log.nmbd files, as well as the log
> files specific to the machines doing the sharing (ipaddress.log or
> hostname.log in /var/log/samba/). They will explain whether it's an
> issue with SMB (the actual file-sharing daemon) or a problem with NMB
> (the name lookup/resolution daemon).
>
> You can of course test this a little further by connecting to the
> machine in question by IP rather than by hostname.
>
> -Dan
>
> --
> ubuntu-au mailing list
> ubuntu-au at lists.ubuntu.com <mailto:ubuntu-au at lists.ubuntu.com>
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-au
> <https://lists.ubuntu.com/mailman/listinfo/ubuntu-au>
>
>
>
>
> --
> When one burns ones bridges, what a very nice fire it makes.
More information about the ubuntu-au
mailing list