Click to See Complete Forum and Search --> : win2k and samba woes!


doughie
02-13-2003, 10:47 PM
I have set up samba on my suse 8.1 and connected it to my win 2k machine. So far i have done the following:
connected them via a switch
set up ip masq using a script called firegate from http://firegate.sourceforge.net
disable passwd encryption on both win2k and in samba.conf
added my win2k user to linux and to samba seperatly
restarted the system since that


I can ping both the samba machine and the outside world on both machines. i can ping the win2k machine on the samba machine. The samba machine lists the win2k machine under the lin neighbourhood browser, although it browses no shares.

My problems:

The linux machine doesnt appear in the win2k network neighbourhood
the linux machine cannot access any shares on the win2k machine


I have set the ips to 192.168.0.* and i have set the subnet masks to 255.255.255.0 and the work group to tux-net on both machines.

Any ideas on what i haven't done or did wrong?


BTW when i enable logging on lin neighbour hood i get the following error when trying to access my win2k machine packet send failed to 192.168.0.255(137) ERRO=Operation not permitted
packet send failed to 80.193.0.255(137) ERRO=Operation not permitted
connection to win2kmachine failed

Also when i do nbtstat -a 192.168.0.1 i get host not found in reply.

Jinx
02-14-2003, 02:48 AM
Sounds like your firewall (masq) setup is preventing broadcasts (192.168.0.255). Since hosts announce themselves on the network through broadcast, this may be the reason you can not see the linux box from your Windows 2000 machine.

First off... disable your firewall...

iptables -F
iptables -L

Should list that all the chains have no rules.

Check to see if smbd and nmbd are running on your linux box.

ps -aux | grep smbd
ps -aux | grep nmbd

Should list both daemons.

from linux try connecting to Windows 2000.

smbclient //winbox/share -U username

or

smbclient //winbox/share -U username -I ipaddress

From your Windows box, try and access your linux box...

Click Start -> Run
Type in "\\linuxbox" <ENTER>

If it comes up with an access error, check your smbpasswd file for the username and password you are trying to connect as.

Remember if you have disabled encryption, you will need to re-enter your password into smbpasswd...

As root, run:
smbpasswd -a <user>

See how that goes.

Once you have got Samba working without your firewall up, you can then troubleshoot your firewall to see what network services need to be allowed.

Hope that helps.

Cya round
Jinx

doughie
02-14-2003, 10:22 AM
thnx dude!