Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Yes I am Polish but I didn't have time yet to investigate the problem. Maybe it is language related... I can check it also (I have some non-polish xp's). I'll let you know. Daniel W dniu 2012-01-27 13:19, BartekR pisze: Hello ! I've upgraded samba to 3.6.1 during migration to new hardware. Problem remains the same. Offtop. Are You Polish ? Nobody else reported similar problem. Perhaps it is language related (language specyfic Windows update). Thanks! BartekR W dniu 2012-01-26 21:59, Daniel Deptuła pisze: Hello! I'm afraid I have the same problem in my network. We have a domain where Samba (3.5.11) is the PDC. Clients include Windows XP's and 7's. I recently noticed that many stations are not visible in the browselist. I'll investigate it and let you know about the results. Daniel -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Hello ! I've upgraded samba to 3.6.1 during migration to new hardware. Problem remains the same. Offtop. Are You Polish ? Nobody else reported similar problem. Perhaps it is language related (language specyfic Windows update). Thanks! BartekR W dniu 2012-01-26 21:59, Daniel Deptuła pisze: Hello! I'm afraid I have the same problem in my network. We have a domain where Samba (3.5.11) is the PDC. Clients include Windows XP's and 7's. I recently noticed that many stations are not visible in the browselist. I'll investigate it and let you know about the results. Daniel -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Hello! I'm afraid I have the same problem in my network. We have a domain where Samba (3.5.11) is the PDC. Clients include Windows XP's and 7's. I recently noticed that many stations are not visible in the browselist. I'll investigate it and let you know about the results. Daniel W dniu 2012-01-25 10:50, BartekR pisze: Hello ! I would like to refresh this topic beacuse I have discovered something new. This problem relates only to machines with WINDOWS XP with automatic system update enabled. Win XP sp2 (fresh install) with disabled updates does not dissapear! So should i try to uninstall some of updates ?Is there any way to find the one responsible for this problem? Thanks ! BartekR -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Hello ! I would like to refresh this topic beacuse I have discovered something new. This problem relates only to machines with WINDOWS XP with automatic system update enabled. Win XP sp2 (fresh install) with disabled updates does not dissapear! So should i try to uninstall some of updates ?Is there any way to find the one responsible for this problem? Thanks ! BartekR -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Hi! Since there is no clean solution for this I wrote simple perl script. Simplified algorithm: 1. Load /etc/hosts 2. Use arping to check every ip from /etc/hosts (belonging to local network) for presence. 3. If there is an arp response check this host by issuing smbclient. 4. If there is an smb response (even error response from server) workstation gets added. Results are visible two way: 1. There is an directory in /tmp (tmpfs) where script creates or remove windows style links (lnk) to machines. Then this directory is shared by smb so windows clients can map it as windows drive. 2. Script replaces original browse.dat . It creates and remove workstation definitions from this file. It is both : very simple and VERY unclean. Thanks for everyone trying to help Me ! Bartek R. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
So it is impossible to solve this issue ? I don't have any other ideas except some kind of nasty workaround: Ill write perl script. It would periodically check every machine in /etc/ethers for presence and smb/nmb activity. Depending on that it will maintain directory with windows-style shortcuts pointing to active machines. I will share this directory throu samba and map them on workstations as drive L , L as list. Thanks BartekR. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
On Wed, May 11, 2011 at 7:58 AM, BartekR bojle...@gmail.com wrote: So it is impossible to solve this issue ? Maybe :) Try running: = net config server /autodisconnect:-1 = on the XP workstations. Check the network device in device manager and make sure that power management isn't allowed to turn it off. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
W dniu 2011-05-11 15:41, Chris Smith pisze: On Wed, May 11, 2011 at 7:58 AM, BartekRbojle...@gmail.com wrote: So it is impossible to solve this issue ? Maybe :) Try running: = net config server /autodisconnect:-1 = on the XP workstations. No success. Check the network device in device manager and make sure that power management isn't allowed to turn it off. It was one of first things checked by my. I did not wrote about this because I found it obvious. Thanks. BartekR. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
BartekR wrote: So it is Windows XP workstations to blame or maybe there is another thing that i should check ? The command nmblookup -MS -- - lists the status of all master browsers on your network. That will tell you if the problem is caused by your server losing its master status, or by something else. Moray. To err is human; to purr, feline. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
W dniu 08.05.2011 21:48, Chris Smith pisze: On Sun, May 8, 2011 at 1:59 PM, BartekRbojle...@gmail.com wrote: So it is Windows XP workstations to blame or maybe there is another thing that i should check ? I run several Samba installations with no such issues with XP. So unless your XP installs are tweaked in some weird fashion I wouldn't suspect off-hand that they are the problem. I find it strange that they are in the browse list for a while and then disappear. No, this machines run Windows XP provided by their manufacturer (Dell, HP, Lenovo and others). They have automatic updates turned on. In your scenario these are the changes I would make: 1) running Samba as a DC, even though you aren't using it for centralized authentication (I suspect, but have no proof, that it's more likely to remain the LMB/DMB). You'll need to also add domain logons = yes to the settings in the previous post. Done. 2) eliminating the added hosts and lmhosts entries since you state you have adequate DNS support and are running a WINS server as well (this will eliminate any possible conflicts in that area). name resolve order = wins host bcast As You wrote below. Am I correct ? 3) make sure that your DHCP server (you seem to have enough systems that manual configuration would be undesirable) provides the proper information for NetBIOS and WINS. And fix the name resolve order in smb.conf (you have a typo - hosts instead of host). For example: testparm does not report this as error. Are You sure ? dhcpd.conf: option netbios-name-servers 192.168.7.1; option netbios-node-type 2; option netbios-scope ; In smb.conf: name resolve order = wins host bcast Done. 4) double-check that all systems are registering themselves with the WINS server (peek at wins.dat). Is it normal that workstation gets registered more than one time ? Take a look: # cat /var/lib/samba/wins.dat VERSION 1 0 ROMEKH#00 1305251800 192.168.7.120 44R ENELPC#20 1304963990 192.168.7.1 66R JAREKK#00 1305219664 192.168.7.112 24R DAREKP#00 1305243373 192.168.7.111 64R BELPHEGOR#00 1305210919 192.168.7.1 192.168.111.1 212.106.129.190 66R BOZENAM#00 1305293717 192.168.7.102 24R HENRYKK#20 1305292133 192.168.7.101 24R JACEKS#20 1305217962 192.168.7.110 64R DRUK-KOLOR#00 1305217858 192.168.7.150 44R ENELPC#1b 1305210919 192.168.7.1 192.168.111.1 212.106.129.190 66R MIREKJ#20 1305290607 192.168.7.122 24R BARTEKR#20 1305251870 192.168.7.121 44R ENELPC#00 1305251870 0.0.0.0 c4R ENELPC#1c 1305210919 192.168.7.1 e4R ROMEKH#20 1305251800 192.168.7.120 44R HENRYKK#00 1305292134 192.168.7.101 24R JACEKS#00 1305290475 192.168.7.110 64R BELPHEGOR#03 1305210919 192.168.7.1 192.168.111.1 212.106.129.190 66R __MSBROWSE__#01 1305051023 0.0.0.0 c4R JAREKK#20 1305219664 192.168.7.112 24R BOZENAM#20 1305293717 192.168.7.102 24R MIREKJ#00 1305290608 192.168.7.122 24R DAREKP#20 1305243373 192.168.7.111 64R BELPHEGOR#20 1305210919 192.168.7.1 192.168.111.1 212.106.129.190 66R ENELPC#1e 1305251870 0.0.0.0 e6R BARTEKR#00 1305251870 192.168.7.121 44R ENELPC#03 1304963990 192.168.7.1 66R Thanks a lot Chris Bartek R. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
# nmblookup -MS -- - INFO: Current debug levels: all: True/10 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 locking: False/0 msdfs: False/0 dmapi: False/0 registry: False/0 doing parameter show add printer wizard = no doing parameter workgroup = ENELPC doing parameter server string = Serwer doing parameter netbios name = belphegor handle_netbios_name: set global_myname to: BELPHEGOR doing parameter load printers = no doing parameter printcap name = /etc/printcap doing parameter printing = cups doing parameter Map to guest = Bad User doing parameter username map = /etc/samba/smbusers doing parameter guest account = nobody doing parameter log file = /var/log/samba/samba.%m doing parameter max log size = 1 doing parameter local master = yes doing parameter domain logons = yes doing parameter wins support = yes doing parameter wins proxy = no doing parameter dns proxy = no doing parameter passdb backend = tdbsam doing parameter security = user doing parameter os level = 32 doing parameter domain master = yes doing parameter preferred master = yes pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: role = ROLE_DOMAIN_PDC Substituting charset 'UTF-8' for LOCALE added interface eth0 ip=fe80::21e:c9ff:fe4b:112%eth0 bcast=fe80:::::%eth0 netmask=::::: added interface eth0 ip=192.168.7.1 bcast=192.168.7.255 netmask=255.255.255.0 added interface lo ip=::1 bcast=::1 netmask=::::::: added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 bind succeeded on port 0 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 1 SO_BROADCAST = 1 Could not test socket option TCP_NODELAY. Could not test socket option TCP_KEEPCNT. Could not test socket option TCP_KEEPIDLE. Could not test socket option TCP_KEEPINTVL. IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_SNDBUF = 114688 SO_RCVBUF = 114688 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 Could not test socket option TCP_QUICKACK. Socket opened. lang_tdb_init: /usr/lib/samba/pl_PL.UTF-8.msg: Nie ma takiego pliku ani katalogu querying __MSBROWSE__ on 192.168.7.255 Sending a packet of len 50 to (192.168.7.255) on port 137 read_udp_v4_socket: ip 192.168.7.1 port 35072 read: 62 parse_nmb: packet id = 13392 Received a packet of len 62 from (192.168.7.1) port 137 nmb packet from 192.168.7.1(137) header: id=13392 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__01 rr_type=32 rr_class=1 ttl=259200 answers 0 char .. hex E000C0A80701 Got a positive name query response from 192.168.7.1 ( 192.168.7.1 ) 192.168.7.1 __MSBROWSE__01 Looking up status of 192.168.7.1 Sending a packet of len 50 to (192.168.7.1) on port 137 read_udp_v4_socket: ip 192.168.7.1 port 35072 read: 265 parse_nmb: packet id = 19307 Received a packet of len 265 from (192.168.7.1) port 137 nmb packet from 192.168.7.1(137) header: id=19307 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__01 rr_type=33 rr_class=1 ttl=0 answers 0 char .BELPHEGOR hex 0942454C504845474F52202020202020 answers 10 char .d.BELPHEGOR hex 00640042454C504845474F5220202020 answers 20 char .d.BELPHEGOR hex 202003640042454C504845474F522020 answers 30 char d...__MSBRO hex 2020202020640001025F5F4D5342524F answers 40 char WSE__ENELPChex 5753455F5F0201E400454E454C504320 answers 50 char .d.ENELP hex 20202020202020201D6400454E454C50 answers 60 char C .d.ENE hex 432020202020202020201B6400454E45 answers 70 char LPC ...E hex 4C50432020202020202020201CE40045 answers 80 char NELPC .. hex 4E454C50432020202020202020201EE4 answers 90 char .ENELPChex 00454E454C5043202020202020202020 answers a0 char hex 00E4 answers b0 char hex answers c0 char hex answers d0 char . hex 00 BELPHEGOR#00: flags = 0x64 BELPHEGOR#03: flags = 0x64 BELPHEGOR#20: flags = 0x64 __MSBROWSE__#01: flags = 0xe4 ENELPC#1d: flags = 0x64 ENELPC#1b: flags = 0x64 ENELPC#1c: flags = 0xe4 ENELPC#1e: flags = 0xe4 ENELPC#00: flags = 0xe4 BELPHEGOR00 - HACTIVE BELPHEGOR03 - HACTIVE
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
On Mon, May 9, 2011 at 10:41 AM, BartekR bojle...@gmail.com wrote: name resolve order = wins host bcast As You wrote below. Am I correct ? 3) make sure that your DHCP server (you seem to have enough systems that manual configuration would be undesirable) provides the proper information for NetBIOS and WINS. And fix the name resolve order in smb.conf (you have a typo - hosts instead of host). For example: testparm does not report this as error. Are You sure ? Yes, I'm sure but you don't have to take my word for it. Read the man page for smb.conf: http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html Basically testparm tests the parameters: the left hand side, and not the values: the right hand side. You'll find you can put all kinds of nonsense on the right hand side of most statements and get no errors (try it). Is it normal that workstation gets registered more than one time ? Yes. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Hallo, Chris, Du meintest am 08.05.11: information for NetBIOS and WINS. And fix the name resolve order in smb.conf (you have a typo - hosts instead of host). In smb.conf: name resolve order = wins host bcast host and hosts are allowed. Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Lastest log with log level = 3 (cat log.nmbd |grep BARTEKR -B1) [2011/05/09 20:23:30.422987, 3] nmbd/nmbd_namelistdb.c:250(add_name_to_subnet) add_name_to_subnet: Added netbios name BARTEKR20 with first IP 192.168.7.121 ttl=299211 nb_flags=44 to subnet WINS_SERVER_SUBNET -- [2011/05/09 20:23:30.423636, 3] nmbd/nmbd_namelistdb.c:250(add_name_to_subnet) add_name_to_subnet: Added netbios name BARTEKR00 with first IP 192.168.7.121 ttl=299211 nb_flags=44 to subnet WINS_SERVER_SUBNET -- [2011/05/09 20:24:11.164635, 3] nmbd/nmbd_incomingdgrams.c:116(process_host_announce) process_host_announce: from BARTEKR00 IP 192.168.7.121 to ENELPC1d for server BARTEKR. [2011/05/09 20:24:11.164742, 3] nmbd/nmbd_serverlistdb.c:156(create_server_on_workgroup) create_server_on_workgroup: Created server entry BARTEKR of type 40011003 (Laptop) on workgroup ENELPC. -- [2011/05/09 20:24:51.415816, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:24:51.417316, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:25:21.430720, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:25:21.432032, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:27:51.453606, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:27:51.455130, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:30:21.473853, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:30:21.475211, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:32:51.497253, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:32:51.518887, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:35:21.516859, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:35:21.518229, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:37:50.537670, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:37:50.553865, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:40:20.560281, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:40:20.561679, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:42:50.581834, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:42:50.583208, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:45:20.601792, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:45:20.603141, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:47:50.624163, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR20 IP 192.168.7.121 [2011/05/09 20:47:50.643811, 3] nmbd/nmbd_winsserver.c:859(wins_process_name_refresh_request) wins_process_name_refresh_request: Name refresh for name BARTEKR00 IP 192.168.7.121 -- [2011/05/09 20:50:20.644343, 3]
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
W dniu 07.05.2011 22:25, Chris Smith pisze: Try changing the above parameters. Eliminate, or comment out: === # socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 === Change the rest to either: or preferably this: === security = user os level = 32 domain master = yes preferred master = yes === Tested twice. No success. XP Workstation keeps disappearing as usual :/ You can still have guest shares with security = user, see: http://blog.realcomputerguy.com/2010/12/samba-and-guest-shares-with-security.html So security = share is some kind of outdated option ? I used it in past without any problems. The smb.conf man page states that preferred master is best used with domain master. It doesn't hurt to have a domain controller even you don't join any systems to it. Thanks for this information too. My manual for smb.conf is shorter from what i remember from past. I have no preciseful option descriptions. One more time: Thanks! Bartek R. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
So it is Windows XP workstations to blame or maybe there is another thing that i should check ? Bartek R. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
On Sun, May 8, 2011 at 1:59 PM, BartekR bojle...@gmail.com wrote: So it is Windows XP workstations to blame or maybe there is another thing that i should check ? I run several Samba installations with no such issues with XP. So unless your XP installs are tweaked in some weird fashion I wouldn't suspect off-hand that they are the problem. I find it strange that they are in the browse list for a while and then disappear. In your scenario these are the changes I would make: 1) running Samba as a DC, even though you aren't using it for centralized authentication (I suspect, but have no proof, that it's more likely to remain the LMB/DMB). You'll need to also add domain logons = yes to the settings in the previous post. 2) eliminating the added hosts and lmhosts entries since you state you have adequate DNS support and are running a WINS server as well (this will eliminate any possible conflicts in that area). 3) make sure that your DHCP server (you seem to have enough systems that manual configuration would be undesirable) provides the proper information for NetBIOS and WINS. And fix the name resolve order in smb.conf (you have a typo - hosts instead of host). For example: dhcpd.conf: option netbios-name-servers 192.168.7.1; option netbios-node-type 2; option netbios-scope ; In smb.conf: name resolve order = wins host bcast What netbios-node-type 2 does is set the systems to P-node, eliminating a lot of broadcast noise, but WINS must be operational. If P node doesn't work that tells you WINS isn't fully functional. Netbios-scope is basically unused today but I always unset it just to be sure. Eliminating the hosts and lmhosts entries mean that there is no need for lmhosts in the name resolve order. And with the order as I have it Samba will use WINS first (most desirable), DNS second, and then broadcasts (least desirable, and not very useful in P-node anyway). 4) double-check that all systems are registering themselves with the WINS server (peek at wins.dat). If the above doesn't ameliorate the problem it may at least assist in troubleshooting further. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
Hello! I have small network in my work. Workstations that connects to it runs various kind of OS. This includes: 1x Windows 95 (Brother Printer) 8x Windows XP =problematic! 2x Windows Visa 2x Windows 7 1x Samba 3.5.8 (WINS,DNS, supose to be LMB) There is a serious problem with a browselist. Ever single windows XP workstations disapear from browselist after an about 24 - 28 minutes after workstation powerup or smbd restart. After this they are still accesable by hostname, netbiosname, and ip. Other workstations are visible as they should be and don't disapear. First i thought it is an name resolution problem but i run correctly configured dns server. This server answers for both types of querry: straight (domain-ip) and reverse (address-ip).It is well tested. Also i've made /etc/hosts and /etc/samba/lmhosts files. They contains same ip=domain setup as named. Next thing was an firewall on my server (smbd and nmbd runs on it) but i found that it does not matter. Even turning off tcp_syncookies and rp_filter. Without success. I have found an article suggesting that windows xp firewall is to blame. I dont think it is a true, because workstations runs diffrent types of firewall. One of them use windows firewall but others use another firewalling sollution. Both of theese disapear from browselist in the same way. Complete disabling of XP workstation firewall does not solve problem. Every switch in my network was tested. I have excluded damaged one from topology. It was an device connecting 2 XP workstations (+uplink) on a edge of network. Still, no success with improving browselist stability. Also i have tried diffrent configurations of samba. No succes. Now i run following configuration: #= [global] #tested max protocol = NT1 syslog = 0 unix charset = UTF-8 dos charset = CP852 time server = yes #tested #smb ports = 139 name resolve order = wins bcast hosts lmhosts #tested #interfaces = eth0 192.168.7.1 lo 127.0.0.1 #tested #bind interfaces only = Yes #tested hosts allow = 192.168.7.0/24 127.0.0.1 #tested enhanced browsing = no keepalive = 30 loglevel = all:10 show add printer wizard = no socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 workgroup = ENELPC server string = Serwer netbios name = belphegor security = share load printers = no printcap name = /etc/printcap printing = cups guest account = nobody log file = /var/log/samba/samba.%m max log size = 1 #tested local master = yes #tested os level = 255 #tested domain master = no #tested preferred master = yes domain logons = no #tested wins support = yes wins proxy = no #tested dns proxy = no passdb backend = tdbsam #shares below #[...] #= Lines followed by #tested were changed to find sollution but with no success. There is log piece covering period of time while BARTEKR disappears: #= [2011/05/06 20:04:03.848346, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:03.848486, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705033) - last(1304704509) 900 [2011/05/06 20:04:13.851328, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:13.851467, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705043) - last(1304704509) 900 [2011/05/06 20:04:13.851514, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups) dump_workgroups() dump workgroup on subnet 192.168.7.1: netmask= 255.255.255.0: ENELPC(1) current master browser = ENELPC --ENELPC 408c9a23 (Serwer) --BARTEKR 40011003 (Laptop) --DRUK-KOLOR 40002003 () [2011/05/06 20:04:13.851589, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups) dump_workgroups() dump workgroup on subnet UNICAST_SUBNET: netmask= 127.0.0.1: ENELPC(1) current master browser = UNKNOWN --ENELPC 40899a23 (Serwer) [2011/05/06 20:04:13.851669, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06 20:04:13.851706, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06 20:04:13.851740, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06 20:04:13.851774, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06 20:04:13.851807, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06 20:04:13.851841, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06 20:04:13.851874, 18] lib/util_tdb.c:358(tdb_unpack) tdb_unpack(wbddd, 35) - 31 [2011/05/06
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
On Sat, May 7, 2011 at 3:38 PM, BartekR bojle...@gmail.com wrote: socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 security = share os level = 255 domain master = no preferred master = yes Try changing the above parameters. Eliminate, or comment out: === # socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 === Change the rest to either: === security = user os level = 32 domain master = no # preferred master = yes === or preferably this: === security = user os level = 32 domain master = yes preferred master = yes === You can still have guest shares with security = user, see: http://blog.realcomputerguy.com/2010/12/samba-and-guest-shares-with-security.html The smb.conf man page states that preferred master is best used with domain master. It doesn't hurt to have a domain controller even you don't join any systems to it. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba