Re: [Samba] Home Lan computer browser(s)

2008-06-12 Thread Charlie

For the box that is the samba server, presumably the one that is
 always on, Just set the os level higher than that of the other boxes. Browse
 election rules are discussed at:

 http://www.oreilly.com/catalog/samba2/book/ch07.html Setting os level
 greater than 32 will insure that your samba box will win the election over
 all Win boxes.

As O'Reilly notes on their site, that book is out of date.  Do not use
that book, get one of the newer books, unless you aren't running any
version of windows newer than Win98 Second Edition.

As I understand it, samba by default announces itself as an NT4.9
server on the network.  Windows XP announces itself as NT5.2 or
greater.  Therefore, setting OS level will not matter if there is a
Windows XP machine with file  print sharing turned on, because 5.2.0
is greater than 4.9.255.

Hopefully somebody will correct me if I'm wrong; I haven't actually
examined the source code.  But I think you have to set announce
version = 5.9 if you really want to always win browser elections.

 Weedhopper, just read http://www.oreilly.com/catalog/samba2/book/ch07.html
 and all will become clear ;-)

No, David, look here: http://oreilly.com/catalog/9780596002565/

The book you are recommending (which was excellent in its time) has
been superseded.

--Charlie
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Home Lan computer browser(s)

2008-06-12 Thread Chris Smith
On Thursday 12 June 2008, Charlie wrote:
 As I understand it, samba by default announces itself as an NT4.9
 server on the network.

Yes, according to man smb.conf.

 Hopefully somebody will correct me if I'm wrong; I haven't actually
 examined the source code.  But I think you have to set announce
 version = 5.9 if you really want to always win browser elections.

The man page also indicates not to change the default of 4.9 except for 
a special case to appear downlevel (not uplevel). I'm not sure your 
assumption is correct and look for clarification as well.

-- 
Chris
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Home Lan computer browser(s)

2008-06-12 Thread John H Terpstra
On Thursday 12 June 2008 13:49:48 Chris Smith wrote:
 On Thursday 12 June 2008, Charlie wrote:
  As I understand it, samba by default announces itself as an NT4.9
  server on the network.

 Yes, according to man smb.conf.

  Hopefully somebody will correct me if I'm wrong; I haven't actually
  examined the source code.  But I think you have to set announce
  version = 5.9 if you really want to always win browser elections.

 The man page also indicates not to change the default of 4.9 except for
 a special case to appear downlevel (not uplevel). I'm not sure your
 assumption is correct and look for clarification as well.

I believe Charlie is correct.  The best way to find out what the default value 
is can be done by executing:

testparm -sv | grep announce version

you will get the following output:

announce version = 4.9

I have been slack in not updating the man page and the default value.  What 
has held me back from changing it is where you have NT4 PDC or BDC configs it 
should not be changed.  I have seen an NT4 network where setting this to 5.0 
or higher caused some network admin tools to break.  Since there are not many 
NT4 domains left it may make sense to bump this value up a notch.

Some time soon we should increase the default value to something between 5.0 
and 5.9.

I would like to hear feedback from anyone who is willing to experiment with 
this value and would like to know if there are any negative consequnces to 
setting it to a higher value.

- John T.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Home Lan computer browser(s)

2008-06-04 Thread Skip Guenter

Reading this list makes me think my questions are child's play for ya'll.

*/1) //Should I have more than one computer browser on my lan /*/(~16 
machines)/*/?/*


I'd read someplace that I should have 1 primary and 1 backup computer 
browser for up to 32 computers and then another backup browser for each 
additional 32 computers.  IF this is true then I'd still like to know 
how to do this now that I only have 1 winXP machine that I can muck 
about with but two samba candidates available.  I would assume at this 
point that I'd have to set the winXP machine to NOT be a 'browser'.  I'd 
then need to use the below parms on the two samba machines, with some 
different settings to have them perform this function.


 os level = nnn (0 to 255)
 preferred master = yes/no
 domain master = yes/no
 local master = yes/no

My problem is I'm not sure how the settings should vary from primary 
to backup.  To have one of the samba machines be primary (let's say 
the machine I'm calling C20) would these parms work:


/*2) If so, can you help me with these settings? */

C20... the primary computer browser?

os level = 36
preferred master = yes
domain master = yes
local master = yes

Then on C19... the backup computer browser?

os level = 35
preferred master = ??
domain master = ??
local master = ??

I think this would make C20 win an election but would this make them 
both win an election over the winXP machine should one come on-line 
with computer browser set on?  Are there better settings and / or are 
some of these not needed for my little world?


Thanx, Skip

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Home Lan computer browser(s)

2008-06-04 Thread Michael Heydon

Skip Guenter wrote:

snip
*/1) //Should I have more than one computer browser on my lan 
/*/(~16 machines)/*/?/*


I'd read someplace that I should have 1 primary and 1 backup computer 
browser for up to 32 computers and then another backup browser for 
each additional 32 computers.

snip
Do you know where you heard this? I've never heard of it and it seems 
wrong. As I understand it there is only the master browser role there is 
no concept of a backup, in the event that the master goes down there 
is a new election and a new master is chosen. In any case 32 users is 
ridiculous there are people out there supporting thousands of users, I 
can guarantee they don't have one server per 32 users.



 os level = nnn (0 to 255)
 preferred master = yes/no
 domain master = yes/no
 local master = yes/no


All of these are fairly well explained in the man page.

OS level should be higher for the more reliable/important machine *IF* 
you have a reason to change it, the defaults will be fine for 99% of cases.


Preferred master use this if it is important that one machine is the 
master (i.e. if you have a domain) don't set it on more than one machine.


Domain master is only needed if your network spreads across multiple 
subnets. You should only have one per workgroup/domain.


Local master this is only really needed if you have a machine that you 
definitely don't want to be in charge of anything, otherwise the default 
of yes is fine.



snip


*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Home Lan computer browser(s)

2008-06-04 Thread David C. Rankin

Skip Guenter wrote:

Reading this list makes me think my questions are child's play for ya'll.

*/1) //Should I have more than one computer browser on my lan /*/(~16 
machines)/*/?/*




	You are thinking about the computer that will hold the master browse list 
for netbios name resolution. The answer to your question - NO, there is no 
need. One of the samba servers on your lan will win the browse election and 
become the master browser. Each other machine will hold a copy of the browse 
list. If the master dies, then the normal election rules apply and another box 
will become the master. The master can serve thousands of clients. (hundreds at 
least) There is no need for a backup. Netbios name resolution has nothing to do 
with a Primary Domain Controller (PDC) or Backup Domain Controller (BDC).



 os level = nnn (0 to 255)
 preferred master = yes/no
 domain master = yes/no
 local master = yes/no


	For the box that is the samba server, presumably the one that is always on, 
Just set the os level higher than that of the other boxes. Browse election 
rules are discussed at:


http://www.oreilly.com/catalog/samba2/book/ch07.html Setting os level greater 
than 32 will insure that your samba box will win the election over all Win boxes.




My problem is I'm not sure how the settings should vary from primary 
to backup.  To have one of the samba machines be primary (let's say 
the machine I'm calling C20) would these parms work:


/*2) If so, can you help me with these settings? */

C20... the primary computer browser?

os level = 36
preferred master = yes
domain master = yes
local master = yes

Then on C19... the backup computer browser?

os level = 35
preferred master = ??
domain master = ??
local master = ??

I think this would make C20 win an election but would this make them 
both win an election over the winXP machine should one come on-line 
with computer browser set on?  Are there better settings and / or are 
some of these not needed for my little world?


Thanx, Skip



Weedhopper, just read http://www.oreilly.com/catalog/samba2/book/ch07.html and 
all will become clear ;-)


--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] home lan

2008-05-28 Thread Skip Guenter
I've read too many articles and posts on domain master browser, 
computer master browser, NT domain browser, PDC and BDCs, etc. 
etc.  and I've managed to confuse my shrinking brain over this.  I 
apologize in advance if I'm posting a redundant question (I've looked 
thru archivers best I could) or posting to the wrong place.


Here's my local situation - my router (off of cable modem) serves as 
firewall, a limited DHCP server, etc. etc.  all the standard stuff.


My little network had about 9 relatively stationary machines that are on 
24/7 and another 2 that come and go.  The majority of these are headless 
dedicated number crunchers (it's an affliction called BOINC, another 
story) these all have static IPs.


At one point in time these were nearly all WinXP boxes (exceptions are a 
couple of #3 son's Gentoo machines whose primary purpose I think is 
hacking into stuff... but that's also another topic).  Late last year I 
decided to see if you really can teach an old dog new tricks.  I 
undertook converting one of the 'crunchers' to Xubuntu.  OK, so now you 
know I'm a Linux noob.  Fast forward to today The network now has 
about 15 stationary machines and 3 or 4 that come and go.  All the 
'crunchers' are Xubuntu 64b (v8.04 except one v7.10), one of the 
desktops is Ubuntu and the Gentoo machines are still here (along with #3 
son).  There are only two WinXP machines left... a laptop that is owned 
by my employer and my 'main' desktop(C17).  Two of the Xubuntu 
'crunchers' (C19  C20) have Samba running in a very simple, un-secure 
mode to share up some backup drive space and some generic network 
storage.  One of those (C20) also serves as an apt-cacher.


What I failed to consider in my conversion to Linux was who was the 
'domain master browser' and who the backups were.  The winXP desktop is 
still set to
IsDomainMaster = Yes in it's registry and the Computer Browser 
service is running.  But there are no longer any backups in the network 
that I'm aware of.  Yesterday I was VNCing into one of the crunchers and 
it wouldn't connect.  Ran a .bat file I have that pings all the machines 
and tells me if any don't respond that should.  Dang router 
(192.168.nnn.1) didn't respond... along with some of the other 
machines.  After rebooting cable modem, router, wireless AP - NO 
CHANGE.  For unrelated reasons I happened to crash my desktop (C17, the 
win XP box) a bit later... when it came back up all was fine and 
everybody on the network was again consistently pingable, sub 1ms.  I'm 
concluding it's something to do with C17 being the one and only 
'computer browser list maintainer' on the network.  Maybe a bad 
conclusion but it still brings up that I think I need to address getting 
a 'backup computer browser' on the LAN.


I read someplace that the winXP can't be 'primary' with Samba as 
'backup' but I'm getting mixed signals on that. 

So what this dissertation boils down to is... /*what would you 
recommend* /for my little LAN?


(no subnets, all machines have static IPs or DHCP (router) assigned, 
reserved IPs by MAC address with an occasional exception of uncle 
Freddy's broken computer on the bench and getting a true DHCP next up, 
assigned IP.) 


Other router things that may or may not be relevant:

1) I have no WINS or DNS server and am sure I don't completely 
understand what they do. 
2) My router settings point to the DNS servers of my ISP.
a) along with a checked box, under the .1 IP of the router on the 
local LAN, that says Enable DNS relay (I think router is acting like a 
DNS server, maybe).
3) There is a box checked in the router to turn on NetBios 
advertisement. 
   a) NetBios Registration mode has an option enabled that says 
Broadcast Only (use when no WINS server configured).

4) Enable RIP is checked as on
   a) RIP operating mode is set to V2 multicast
   b) router metric = 1
   c) act as default router is checked as on
5) DHCP is on and a small range of IPs is specified

C17's WinXP registry:
1) IsDomainMaster = Yes
2) MaintainServerList = Yes

*/Should I set up C20 as the primary and C19 as the secondary and turn 
off the computer browser service in the winXP box (after adjusting 
registry)? What settings do I change if that's the recommended course? 
Or is there a configuration I should use where the winXP is primary and 
C20 is the backup?/*


C20's smb.conf:

[global]
## Browsing/Identification ###
#
  workgroup = /name of workgroup is here/
;  server string = %h server (Samba , Ubuntu)
  server string = %h server
  wins support = no
;  dns proxy = no
;  name resolve order = lmhosts host wins bcast

 Networking 
#
  interfaces = eth0
  bind interfaces only = true
  domain master = no
  netbios name = /C20's name here/
  preferred master = no
  local master = no
# (/C17/, master browser)
;  remote announce = 192.168./nnn.nn /

### Authentication ###
#
;  security = user
  security = share
  guest account = /guest/
  invalid users = root 

Re: [Samba] home lan

2008-05-28 Thread Tim Bates
Is your overall issue that you can't work with computer names anymore? 
If so, I'd recommend setting up a real DNS server to fix that. Or if 
your router allows it, enter static local DNS entries in that (sounds 
like you don't have that option though).


TB

Skip Guenter wrote:
I've read too many articles and posts on domain master browser, 
computer master browser, NT domain browser, PDC and BDCs, etc. 
etc.  and I've managed to confuse my shrinking brain over this.  I 
apologize in advance if I'm posting a redundant question (I've looked 
thru archivers best I could) or posting to the wrong place.


Here's my local situation - my router (off of cable modem) serves as 
firewall, a limited DHCP server, etc. etc.  all the standard stuff.


My little network had about 9 relatively stationary machines that are 
on 24/7 and another 2 that come and go.  The majority of these are 
headless dedicated number crunchers (it's an affliction called BOINC, 
another story) these all have static IPs.


At one point in time these were nearly all WinXP boxes (exceptions are 
a couple of #3 son's Gentoo machines whose primary purpose I think is 
hacking into stuff... but that's also another topic).  Late last year 
I decided to see if you really can teach an old dog new tricks.  I 
undertook converting one of the 'crunchers' to Xubuntu.  OK, so now 
you know I'm a Linux noob.  Fast forward to today The network now 
has about 15 stationary machines and 3 or 4 that come and go.  All the 
'crunchers' are Xubuntu 64b (v8.04 except one v7.10), one of the 
desktops is Ubuntu and the Gentoo machines are still here (along with 
#3 son).  There are only two WinXP machines left... a laptop that is 
owned by my employer and my 'main' desktop(C17).  Two of the Xubuntu 
'crunchers' (C19  C20) have Samba running in a very simple, un-secure 
mode to share up some backup drive space and some generic network 
storage.  One of those (C20) also serves as an apt-cacher.


What I failed to consider in my conversion to Linux was who was the 
'domain master browser' and who the backups were.  The winXP desktop 
is still set to
IsDomainMaster = Yes in it's registry and the Computer Browser 
service is running.  But there are no longer any backups in the 
network that I'm aware of.  Yesterday I was VNCing into one of the 
crunchers and it wouldn't connect.  Ran a .bat file I have that pings 
all the machines and tells me if any don't respond that should.  Dang 
router (192.168.nnn.1) didn't respond... along with some of the other 
machines.  After rebooting cable modem, router, wireless AP - NO 
CHANGE.  For unrelated reasons I happened to crash my desktop (C17, 
the win XP box) a bit later... when it came back up all was fine and 
everybody on the network was again consistently pingable, sub 1ms.  
I'm concluding it's something to do with C17 being the one and only 
'computer browser list maintainer' on the network.  Maybe a bad 
conclusion but it still brings up that I think I need to address 
getting a 'backup computer browser' on the LAN.


I read someplace that the winXP can't be 'primary' with Samba as 
'backup' but I'm getting mixed signals on that.
So what this dissertation boils down to is... /*what would you 
recommend* /for my little LAN?


(no subnets, all machines have static IPs or DHCP (router) assigned, 
reserved IPs by MAC address with an occasional exception of uncle 
Freddy's broken computer on the bench and getting a true DHCP next 
up, assigned IP.)

Other router things that may or may not be relevant:

1) I have no WINS or DNS server and am sure I don't completely 
understand what they do. 2) My router settings point to the DNS 
servers of my ISP.
a) along with a checked box, under the .1 IP of the router on the 
local LAN, that says Enable DNS relay (I think router is acting like 
a DNS server, maybe).
3) There is a box checked in the router to turn on NetBios 
advertisement.a) NetBios Registration mode has an option enabled 
that says Broadcast Only (use when no WINS server configured).

4) Enable RIP is checked as on
   a) RIP operating mode is set to V2 multicast
   b) router metric = 1
   c) act as default router is checked as on
5) DHCP is on and a small range of IPs is specified

C17's WinXP registry:
1) IsDomainMaster = Yes
2) MaintainServerList = Yes

*/Should I set up C20 as the primary and C19 as the secondary and turn 
off the computer browser service in the winXP box (after adjusting 
registry)? What settings do I change if that's the recommended course? 
Or is there a configuration I should use where the winXP is primary 
and C20 is the backup?/*


C20's smb.conf:

[global]
## Browsing/Identification ###
#
  workgroup = /name of workgroup is here/
;  server string = %h server (Samba , Ubuntu)
  server string = %h server
  wins support = no
;  dns proxy = no
;  name resolve order = lmhosts host wins bcast

 Networking 
#
  interfaces = eth0
  bind interfaces only = true
  domain master = 

Re: [Samba] home lan

2008-05-28 Thread David Kuntadi
On Thu, May 29, 2008 at 12:39 AM, Skip Guenter [EMAIL PROTECTED] wrote:
Yesterday I was VNCing into one of the crunchers and it wouldn't
 connect.  Ran a .bat file I have that pings all the machines and tells me if
 any don't respond that should.  Dang router (192.168.nnn.1) didn't
 respond... along with some of the other machines.  After rebooting cable
 modem, router, wireless AP - NO CHANGE.  For unrelated reasons I happened to
 crash my desktop (C17, the win XP box) a bit later... when it came back up
 all was fine and everybody on the network was again consistently pingable,
 sub 1ms.  I'm concluding it's something to do with C17 being the one and
 only 'computer browser list maintainer' on the network.  Maybe a bad
 conclusion but it still brings up that I think I need to address getting a
 'backup computer browser' on the LAN.

I think the only problem is IP address of individual computer. Is this
still static of DHCP? If it is DHCP, which computer is running DHCP?

If the problem occur again, please check both computers IP address.
Even local dns would not help you to solve this as you are connecting
using IP address. DNS only usefull if you are using name, not IP (to
convert name to IP).

DK
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] home lan

2008-05-28 Thread Shaun Marolf
On Wednesday 28 May 2008 10:04:08 pm David Kuntadi wrote:
 On Thu, May 29, 2008 at 12:39 AM, Skip Guenter [EMAIL PROTECTED] 
wrote:
 Yesterday I was VNCing into one of the crunchers and it wouldn't
  connect.  Ran a .bat file I have that pings all the machines and tells me
  if any don't respond that should.  Dang router (192.168.nnn.1) didn't
  respond... along with some of the other machines.  After rebooting cable
  modem, router, wireless AP - NO CHANGE.  For unrelated reasons I happened
  to crash my desktop (C17, the win XP box) a bit later... when it came
  back up all was fine and everybody on the network was again consistently
  pingable, sub 1ms.  I'm concluding it's something to do with C17 being
  the one and only 'computer browser list maintainer' on the network. 
  Maybe a bad conclusion but it still brings up that I think I need to
  address getting a 'backup computer browser' on the LAN.

 I think the only problem is IP address of individual computer. Is this
 still static of DHCP? If it is DHCP, which computer is running DHCP?

 If the problem occur again, please check both computers IP address.
 Even local dns would not help you to solve this as you are connecting
 using IP address. DNS only usefull if you are using name, not IP (to
 convert name to IP).

 DK

Shorewall. DHCP Server and BIND are three ways to get a home LAN going. 
Shorewall will handle NAT and provide your security while DHCP Server will 
handle assigning IP address assignments. BIND will handle internal DNS stuff 
(and can even cache the External DNS.) All of these will allow Samba to work 
as well.

Mandriva Linux even has a Wizard to set up all these sevices for you.

--Shaun
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba