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 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
W dniu 2011-05-11 15:41, Chris Smith pisze: On Wed, May 11, 2011 at 7:58 AM, BartekR 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
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
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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<00> IP 192.168.7.121 to ENELPC<1d> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> 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 BARTEKR<00> 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 BARTEKR<20> IP 192.168.7.121 [2011/05/0
Re: [Samba] Samba 3.5.8 - windows XP workstations disapear from browselist
H BELPHEGOR<03> - H BELPHEGOR<20> - H ..__MSBROWSE__.<01> - H ENELPC<1d> - H ENELPC<1b> - H ENELPC<1c> - H ENELPC<1e> - H ENELPC<00> - H MAC Address = 00-00-00-00-00-00 For me it looks fine. Only belphegor (192.168.7.1) answers querry. 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
W dniu 08.05.2011 21:48, Chris Smith pisze: On Sun, May 8, 2011 at 1:59 PM, BartekR 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
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
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
[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)