grooverider 0 Posted January 29, 2005 hey people, i have a problem which is driving me crazy with my network, i have been trying to find help on the net for weeks now, but couldn't find any helpful sites relating to my problem so i thought i'd try posting it on here. I have a network with three computers machine#1: 10.0.0.1 windows 2000 prof machine#2: 10.0.0.3 linux suse 9.0 with Version 2.2.8a-SuSE machine#3: 10.0.0.4 windows 2000 prof all machines can ping each other and both windows machines can read each others shares and the shares of the linux machine, in linux i can also mount the shares of machine #1 but not the ones of machine #3 althought when doing smbclient -L machinename -U user i can see the shares of machine#3 but when i try to mount them with e.g. mount -t smbfs -o username=xxx,password=xxxx //machinename/SGC/ /test it does not work, neither when i specify workgroup, ip or more options i get the following error: 16025: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name) SMB connection failed the number 16025 changes btw, if u think i have a typo in my mount command becuase it says invalid share name, that is not the problem, ihave checked that many times, and mounting shares from machine#1 is no problem smbclient -L machine3 -U user gives this: added interface ip=10.0.0.3 bcast=10.0.0.255 nmask=255.255.255.0 Got a positive name query response from 127.0.0.1 ( 10.0.0.4 ) Password: Domain=[WEBCHILLA] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- E$ Disk Default share ftp6 Disk IPC$ IPC Remote IPC G$ Disk Default share F$ Disk Default share SGC Disk G Disk ADMIN$ Disk Remote Admin H$ Disk Default share C$ Disk Default share Grooverider Disk Education Corner ftp3 Disk Server Comment --------- ------- Workgroup Master --------- ------- smbclient -L machine#1 -U user gives this: added interface ip=10.0.0.3 bcast=10.0.0.255 nmask=255.255.255.0 Password: Domain=[WEBCHILLA] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- E$ Disk Default share ftp1 Disk IPC$ IPC Remote IPC D$ Disk Default share Funky Disk G$ Disk Default share F$ Disk Default share ADMIN$ Disk Remote Admin Series Disk C$ Disk Default share Software Disk Server Comment --------- ------- Workgroup Master --------- ------- as you can see there is a difference in this line with the problem machine: Got a positive name query response from 127.0.0.1 ( 10.0.0.4 ) both computers have the same username/password which is also added in linux, i set in both windows computer to never be masterbrowser or domain controller and testparm shows this: Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[print$]" Processing section "[documents]" Processing section "[chinaconnection desktop]" Processing section "[htmlstuff]" Processing section "[funkmaster home]" Processing section "[glftpdtest]" Processing section "[my azz]" Processing section "[Deep Space Nine]" Processing section "[geexbox]" Loaded services file OK. WARNING: You have some share names that are longer than 8 chars These may give errors while browsing or may not be accessible to some older clients Press enter to see a dump of your service definitions my log.nmbd has this error: [2005/01/27 17:04:05, 0] nmbd/nmbd_browsesync.c:find_domain_master_name_query_fa il(358) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name WEBCHILLA<1b> for the workgroup WEBCHILLA. Unable to sync browse lists in this workgroup. my smb.conf looks like this: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2005/01/07 17:54:11 # Global parameters [global] workgroup = WEBCHILLA server string = ChinaConnection interfaces = eth1 encrypt passwords = Yes map to guest = Bad User time server = Yes unix extensions = Yes socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY printcap name = CUPS os level = 128 preferred master = Yes domain master = No wins support = Yes printing = cups [homes] comment = Home Directories invalid users = geexbox valid users = %S read only = No create mask = 0640 directory mask = 0750 browseable = No [printers] comment = All Printers path = /var/tmp invalid users = geexbox create mask = 0600 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/drivers invalid users = geexbox write list = @ntadmin,@root force group = ntadmin create mask = 0664 directory mask = 0775 [documents] comment = documents path = /home/funkmaster/Documents/ invalid users = geexbox read only = No [chinaconnection desktop] comment = ChinaConnection Desktop path = /home/funkmaster/Desktop/ invalid users = geexbox read only = No [htmlstuff] comment = susi share path = /home/funkmaster/public_html/ invalid users = geexbox read only = No [funkmaster home] comment = funkmaster home path = /home/funkmaster/ invalid users = geexbox read only = No [glftpdtest] path = /prison/glftpd/site guest account = invalid users = geexbox valid users = funkmaster,funky1,@root,@users read only = No [my azz] comment = argh path = /home/funkmaster/ftp invalid users = geexbox read only = No and so on... i have no idea what the problem is, please some help thx in advance Share this post Link to post
martouf 0 Posted January 29, 2005 I once fixed an interoperability problem by setting the linux host to be the domain master browser and increasing the 'os level' so the linux host would be certain to win all master browser elections. Share this post Link to post
danleff 0 Posted January 30, 2005 WOW! I'm not going to be much help here, but did I learn a lot about samba by reading your post. I have struggled with it for a while and default to LinNeigborhood to run things. I hope that you do not mind if I use your examples to set my systems up. Share this post Link to post
grooverider 0 Posted January 30, 2005 martouf: the os level of samba is already set to: os level = 128 so it should actually always win against windows to be master browser, but i did not set the option domain master browser as i actually don't have a domain but a workgroup running, or did u mean something else, maybe other ideas? danleff: of course i don't mind if you want to use my settings if u need some help which i can provide with ur problem just post it Share this post Link to post
martouf 0 Posted January 31, 2005 check the nmbd log file carefully. if necessary, increase its verbosity so you can check the results of the elections. As I recall, the default 'os level' is set to be the same as most Windows server products. I remember the documentation saying it should be sufficient to win the elections, but in practice I found the only way was to _ensure_ it would win by setting it one higher than the highest I found in the log trace. You're right 'domain master browser' is a special kind of master browser reserved only for the PDC of a domain. The local master browser becomes the 'keeper of the names' on the network. The winner of the election becomes the master for the entire workgroup, even if that's your slowest and least reliable PC on the network! Bleccchh! I say force the issue by choosing one and only one host to be the master browser. Samba gives you the means to make it be one all of the Windows hosts choose. A quick scan of the Samba docs says you'll want: preferred master = auto local master = yes domain master = no and probably: os level = 129 Share this post Link to post