Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp get "no service..." from Samba - help! 1

Status
Not open for further replies.

miniz

Technical User
Aug 10, 2002
3
SG
hi,

my home network consists of 1 winXP ('myxp') box and 1 linux ('mysamba') box connected to a router-switch for DSL internet sharing.

The linux runs Samba 2.2.1a. It can do 'smbclient //myxp/shareddocs' to browse and read files of xp box.

The xp box can see 'mysamba' icon in My Network Place, but when I double-click it, i get "No service is operating at the destination network endpoint on the remote system." and denied access.

I also tried in xp commnad line 'net use \\mysamba\test' and received the same message + 'System error 1234 has occurred'.

Both pc don't use domain but are in the same workgroup. I use /etc/hosts and windows hosts file to help each other to resolve computer name. Both can ping each other by name. I didn't run any WINS.

what's wrong? Help!!
thanks!


here's my smb.conf


[global]
workgroup = HOME
netbios name = MYSAMBA
server string =
encrypt passwords = Yes
smb passwd file = /etc/samba/private/smbpasswd
username map = /etc/samba/private/smbusers
log level = 3
log file = /var/log/samba/%m.log
max log size = 2000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
hosts allow = 192.168.1.
printing = lprng

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[test]
comment = for testing only
path = /tmp/test
read only = No
guest only = Yes
guest ok = Yes
hosts allow =
 
check your smbd and nmbd log files and let us know whats in there.

also check the ipchains service in the linux machine.
try to do a
#service ipchains stop
in the linux machine and try connecting again from xp machine.

Regards
MP
 
Hi Murugs, I used 'service ipchains stop' and my xp can connect to linux now! thanks!

by the way, what does 'service ipchains stop' mean? Do I have to type this everytime I start up my linux machine?


Regards,
miniz
 
Glad it worked..
This is related to firewall.
When you installed the OS I'd guess that you took the default firewall installation, which blocks all inbound services. Whether you really need a firewall or not depends on the network environment your computer is in.

As a quick fix you can shutdown the default firewall with
'/etc/init.d/ipchains stop' which is equivalent to service ipchains stop.

Note that the firewall will start at the next boot unless
it's been disabled with
##chkconfig --level 2345 ipchains off

Hope this helps.

Murugs
 
EXCELLENT! Fixed my problem quickly with these actions. Thanks heaps.
 
Hello TrevorGall
Good it worked for you..When I got stuck in to this problem there was no one to suggest any ideas and when browsing thru the news groups I found a person who was having the same problem and then I emailed him if he has found any luck in the solution. He replied quickly with the solution and it took 5 days for me to get out of this samba issue.
We should really appreciate forums like tek-tips and google groups which are of great help..and we need to support them.

regards
MP

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top