NT hammering my samba netbios?
I've recently added a Windows NT4sp6a box to my home network, configured as a PDC and running Microsoft Exchange (don't ask). Since then, whenever it's up, I keep getting the following entries in /var/log/syslog: May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19288 from=192.168.33.3 May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19289 from=192.168.33.3 May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19290 from=192.168.33.3 May 1 04:59:23 evo xinetd[606]: Deactivating service netbios-ns due to excessive incoming connections. Restarting in 10 seconds. May 1 04:59:23 evo xinetd[606]: FAIL: netbios-ns connections per second from=192.168.33.3 (192.168.33.3 is the NT box.) A few seconds later the netbios-ns service restarts, and I get another batch of 10 START messages and it dies again. Does anyone have any clue what's going on? Actually, it's a bit weirder than that: after the service restarts, the next batch of messages say May 1 05:00:42 evo xinetd[606]: START: netbios-ns pid=19291 from=192.168.33.1 where 192.168.33.1 is my linux box! It appears to be hammering itself. This isn't causing any noticable effects, but it's sure filling my log files quickly. Any clues would be helpful, or let me know if you need any further information about the Linux or NT configurations. Thanks! -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: NT hammering my samba netbios?
On 0, Randy Orrison [EMAIL PROTECTED] wrote: I've recently added a Windows NT4sp6a box to my home network, configured as a PDC and running Microsoft Exchange (don't ask). Since then, whenever it's up, I keep getting the following entries in /var/log/syslog: May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19288 from=192.168.33.3 May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19289 from=192.168.33.3 May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19290 from=192.168.33.3 May 1 04:59:23 evo xinetd[606]: Deactivating service netbios-ns due to excessive incoming connections. Restarting in 10 seconds. May 1 04:59:23 evo xinetd[606]: FAIL: netbios-ns connections per second from=192.168.33.3 (192.168.33.3 is the NT box.) A few seconds later the netbios-ns service restarts, and I get another batch of 10 START messages and it dies again. Does anyone have any clue what's going on? Actually, it's a bit weirder than that: after the service restarts, the next batch of messages say May 1 05:00:42 evo xinetd[606]: START: netbios-ns pid=19291 from=192.168.33.1 where 192.168.33.1 is my linux box! It appears to be hammering itself. This isn't causing any noticable effects, but it's sure filling my log files quickly. Any clues would be helpful, or let me know if you need any further information about the Linux or NT configurations. I think this is caused by your linux box's samba service winning the election for domain master. If you don't want this to happen you need these in /etc/samba/smb.conf: os level = 0 domain master = no local master = no preferred master = no Then your NT box can happily win the election. Tom -- Tom Cook Information Technology Services, The University of Adelaide That you're not paranoid does not mean they're not out to get you. - Robert Waldner Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au pgpc2KsuARUsn.pgp Description: PGP signature
Re: NT hammering my samba netbios?
On Wed, May 01, 2002 at 04:22:07PM +0930, Tom Cook wrote: | On 0, Randy Orrison [EMAIL PROTECTED] wrote: | I've recently added a Windows NT4sp6a box to my home network, configured as | a PDC and running Microsoft Exchange (don't ask). Since then, whenever it's | up, I keep getting the following entries in /var/log/syslog: | | May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19288 from=192.168.33.3 | | I think this is caused by your linux box's samba service winning the | election for domain master. If you don't want this to happen you need | these in /etc/samba/smb.conf: | |os level = 0 |domain master = no |local master = no |preferred master = no | | Then your NT box can happily win the election. That did it, thanks! I'll have to read up more on those options, since my NT box is not always up and I (think I) would prefer the linux box to be the browse master... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: NT hammering my samba netbios?
There's good documentation on this in the BROWSING.txt file in the Samba documentation (or there used to be - I haven't used samba in a while). If you want the samba machine to always win, set os level high (like 64). Also, though, it almost never makes sense to have nmbd launched from inetd, which you appear to be doing here. nmbd answers name requests on the network, and also handles the browser election process when necessary; it can pull in a lot of request packets and so the overhead of starting and restarting it under inetd is too high. ap -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill [EMAIL PROTECTED] * andrew_perrin (at) unc.edu On Wed, 1 May 2002, Randy Orrison wrote: On Wed, May 01, 2002 at 04:22:07PM +0930, Tom Cook wrote: | On 0, Randy Orrison [EMAIL PROTECTED] wrote: | I've recently added a Windows NT4sp6a box to my home network, configured as | a PDC and running Microsoft Exchange (don't ask). Since then, whenever it's | up, I keep getting the following entries in /var/log/syslog: | | May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19288 from=192.168.33.3 | | I think this is caused by your linux box's samba service winning the | election for domain master. If you don't want this to happen you need | these in /etc/samba/smb.conf: | |os level = 0 |domain master = no |local master = no |preferred master = no | | Then your NT box can happily win the election. That did it, thanks! I'll have to read up more on those options, since my NT box is not always up and I (think I) would prefer the linux box to be the browse master... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: NT hammering my samba netbios?
On Wed, May 01, 2002 at 07:57:48AM +0100, Randy Orrison wrote: | On Wed, May 01, 2002 at 04:22:07PM +0930, Tom Cook wrote: | | On 0, Randy Orrison [EMAIL PROTECTED] wrote: | | I've recently added a Windows NT4sp6a box to my home network, configured as | | a PDC and running Microsoft Exchange (don't ask). Since then, whenever it's | | up, I keep getting the following entries in /var/log/syslog: | | | | May 1 04:59:23 evo xinetd[606]: START: netbios-ns pid=19288 from=192.168.33.3 | | | | I think this is caused by your linux box's samba service winning the | | election for domain master. If you don't want this to happen you need | | these in /etc/samba/smb.conf: | | | |os level = 0 | |domain master = no | |local master = no | |preferred master = no | | | | Then your NT box can happily win the election. | | That did it, thanks! I'll have to read up more on those options, since my | NT box is not always up and I (think I) would prefer the linux box to be the | browse master... Actually, it didn't... I hadn't waited long enough. Oh well... following Andrew Perrin's suggestion, I changed to running samba as daemons instead of from xinit, and now I'm not getting the messages in syslog (obviously). I'm also not getting any obnoxious messages in /var/log/samba/*, so I'm hoping that things are a bit happier. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Samba -- netbios (solution)
On Mon, 11 Aug 1997, Jens B. Jorgensen wrote: be a-ok). Anyway, I've attached a short perl script which you may use as a replacement for smbmount which will do the NMB lookup itself. This script should be included with smbmount, it's very nice to be able to do this kind of lookup. Jason -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Samba -- netbios (solution)
Adam Shand wrote: The smbmount command can't locate any servers by their name (it works with the IP -- also, smbclient does work w/ names). I think this has something to do w/ netbios. Anyone know how to get this to work? This does work, however the catch is that the netbios name must match the DNS hostname. So if it's DNS name is 'pinky.domain.net' then the windows name for the same computer must be 'pinky'. [ other admonishment cut ] And you people call yourself unix users!! You oughta be ashamed! ;) What ever happened to good, old-fashioned ingenuity! Yes, smbmount uses gethostbyname() rather than doing a Lan Manager name lookup. But no, that doesn't mean (which I believe another respondent unintentionally implied) that the DNS name *has* to match the netbios name. This can cause problems because the server's name is embedded in the mount request and is be rejected if it doesn't match the server's name. (Which is to say, if you use the IP address rather than the DNS name, and pass the server name as a '-s' argument, you'll be a-ok). Anyway, I've attached a short perl script which you may use as a replacement for smbmount which will do the NMB lookup itself. -- Jens B. Jorgensen [EMAIL PROTECTED] #!/usr/bin/perl # check args die `smbmount -h` if ($#ARGV 1); # parse out server name, share name, and mount point ($ARGV[0] =~ '^//([^/]+)/(.+)');# || die `smbmount -h`; $server = $1; $share = $2; $mntpoint = $ARGV[1]; # use nmblookup to find IP address for the target server open(INFILE, /usr/bin/nmblookup $server |); while (INFILE) { chop; if ($_ =~ '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+) .+') { $serverip = ${1}.${2}.${3}.${4}; } } do { print unknown host $server\n; exit 1; } unless $serverip; # in NetBIOS land, all hostnames are ALL CAPS $server = uc($server); # now just run the whole command $cmd = /usr/bin/smbmount //${serverip}/$share $mntpoint -s$server; if ($#ARGV 1) { $cmd .= . join(' ', @ARGV[2..$#ARGV]); } exit system($cmd) / 256;
Re: Samba -- netbios
In your email to me, Adam Shand, you wrote: The smbmount command can't locate any servers by their name (it works with the IP -- also, smbclient does work w/ names). I think this has something to do w/ netbios. Anyone know how to get this to work? This does work, however the catch is that the netbios name must match the DNS hostname. So if it's DNS name is 'pinky.domain.net' then the windows name for the same computer must be 'pinky'. Not really. This is what the lmhosts file is for. Tim -- (work) [EMAIL PROTECTED] / (home) [EMAIL PROTECTED] - http://www.buoy.com/~tps It's easy to make a buck. It's a lot tougher to make a difference. - Tom Brokaw ** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.** -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Samba -- netbios
The smbmount command can't locate any servers by their name (it works with the IP -- also, smbclient does work w/ names). I think this has something to do w/ netbios. Anyone know how to get this to work? This does work, however the catch is that the netbios name must match the DNS hostname. So if it's DNS name is 'pinky.domain.net' then the windows name for the same computer must be 'pinky'. You can try using 'smbclient -L' to see what services are available on a given server (windows or unix) and to make sure that the computer you are on does actually have permission to mount the share. Adam. -- Earthlight Communications Limited - P.O. Box 5301 Adam Shand (fax) +64 3 477 5463 Dunedin, New Zealand Systems Manager (voice) +64 3 479 0303 --- http://larry.earthlight.co.nz/ --- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Samba -- netbios
The smbmount command can't locate any servers by their name (it works with the IP -- also, smbclient does work w/ names). I think this has something to do w/ netbios. Anyone know how to get this to work? -Paul -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Samba -- netbios
The smbmount command can't locate any servers by their name (it works with the IP -- also, smbclient does work w/ names). I think this has something to do w/ netbios. Anyone know how to get this to work? -Paul -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Samba -- netbios
On Sat, 9 Aug 1997, Paul Miller wrote: : The smbmount command can't locate any servers by their name (it works : with the IP -- also, smbclient does work w/ names). I think this has : something to do w/ netbios. Anyone know how to get this to work? Well, a `man smbmount' would give you enough information: Currently smbmount uses gethostbyname() to find the IP number of the desired host. It is thus not really comĀ” patible with Lan Manager conventions, where the netbios name of the server is not necessarily the same as the hostname. In environments which enforce a netbios name that's different than the hostname, you should use -s and -c to simulate appropriate behaviour. It just isn't possible with this version of smbmount. Remco. -- // Remco van de Meent // email: [EMAIL PROTECTED] // www: http://oloon.student.utwente.nl //Never make any mistaeks. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .