Click to See Complete Forum and Search --> : samba trouble again...


pvc
09-30-2002, 07:20 AM
hi i just did reinstall of mandrake 8.1 and now i cant get samba to work properly oncee again :(


from my linux box i can connect to the samba shares if i use the ipaddy )smbclient \\\ip\\homes, but not throught the computername i listed in smb.conf.

from my windows box i see the linuxbox in network-enviroment, and i can acces it so i see the available shares, but i cant connect to it, i get a "share doesnt exists" error...

anyone have any idea why this could happen?

thanks in advace
pvc

pvc
10-03-2002, 09:48 AM
any one an idea?

Hayl
10-03-2002, 10:04 AM
you need to set up name resolution

(i.e. wins, etc)

pvc
10-03-2002, 10:38 AM
hmz i enables wins (over dhcp) on my win 98 box and now i sees both itself and the linux box, but still the problem remains..

i still can acces the linux box from windows (if i click on the linux box i get list of shares, but when i click these share i get a "cannot find shar" error....

i can acces the linuxbox from itself with no problems...
(both by ip as by netbios name)

Hayl
10-03-2002, 10:46 AM
exactly.

you need to set up name resolution for the linux box. your linux box does not have any name resolution set up so it can't map names to ip addresses.

you don't need to enable it on your win 98 box.

if you don't have a WINS server then there is no point in setting it up in Win 98. you can use an lmhosts file instead on your linux box.

http://letanou.linuxfr.org/samba/htmldocs/lmhosts.5.html

pvc
10-03-2002, 12:19 PM
hmz that seems strange to me since i CAN connect to the windows machine form my linux box using the netbios name...

basicaly from linux everything looks peachy, but from windows it cant acces the shared folders, it CAN acces the linux box...


also since i use dhcp for the windows box ip lmhost isnt aan otion i think...

cowanrl
10-03-2002, 09:27 PM
As long as all your computers are on the same IP subnet, you do not need to do anything for NetBIOS name resolution on your Linux machine. Samba will use broadcasts for name resolution.
If you have to set up WINS or lmhosts files to get NetBIOS name resoltuion on your Linux machine, Samba isn't configured properly.

Are all of your machines on the Same IP subnet?
Are you still getting the same error message on your Windows machine that the share doesn't exist?
You may want to post your smb.conf file here. That would help troubleshoot.

pvc
10-05-2002, 01:14 PM
yes both machine are on the same subnet (192.168.0 ),

here's my smb.conf file

---------------------------------------
[global]
workgroup = METAL
netbios name = REBEL
sever string = Blaat!
interfaces = eth1
security = share
encrypt passwords = yes
log level = 3
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY SO_SNDBUF =8192 SO_RCVBUF=8192
host allow = 192.168.
wins support = yes

[share1]
path= /home/share1
read only = no
guest ok =yes
browseble = yes

----------------------------------

any on have an idea what could be wrong?

Hayl
10-05-2002, 01:28 PM
Originally posted by cowanrl
As long as all your computers are on the same IP subnet, you do not need to do anything for NetBIOS name resolution on your Linux machine. Samba will use broadcasts for name resolution.
If you have to set up WINS or lmhosts files to get NetBIOS name resoltuion on your Linux machine, Samba isn't configured properly.

True but.... i always set it up so i don't have all that broadcast traffic.

pvc
10-06-2002, 08:41 AM
so anyone have any idea why can can find the box, but somehow cannot find the shares?

(from linux i CAN acces the share both on the linux box and the windows box)


thnx

pvc
10-07-2002, 11:56 AM
hmz found another clue yet dont knowwhat to do with it...

if i connect to the share on the linux box, from the linux box i can acces it with noproblem, but if i try to acces it without giving a password, i get a ERRDOS ERRnosuchshare erron wich is kinda aimilar to the error i get when i try to connect from windows, so i think the problem may lie here somehow, but i have no clue...

it kinda seems like windows isnt sending the password,
i didnt disabled encrypted passwords in windows (the reg-tweak)
and i have encrypt passwords to yes in my smb.conf...


any one got any ideas why my windows can see the share but gets a invalid share name error?

thanx in advance,
pvc

pvc
10-07-2002, 11:59 AM
ok i just got it working :),

i had to set security to user to get it to work somehow,
no idea why but it works, thanks for the advice people :)