LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't connect from Windows machine (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-from-windows-machine-47297/)

jdklein1975 02-26-2003 04:35 PM

Can't connect from Windows machine
 
I have setup Samba and my smb.conf file on my linux machine (linux1). I have the service started and I can connect to the shares on my linux machine. When I try to connect from my Winodws machine, though, I get the following message:

No service is operating at the destination endpoint on the remote system.

I have tried to connect via windows mapping and the cmd prompt. I have entered the following at the cmd prompt:

net use x: \\linux1\homes

Any help would be appreciated. Thanks!

mychl 02-26-2003 06:59 PM

Post the results of the following command from your linux system...

nmap localhost

That'll tell us if the port is open, or what services are running.

jdklein1975 02-26-2003 07:31 PM

here it is. It appears as though the port smb is running on is closed. How do you open?

Interesting ports on localhost.localdomain (127.0.0.1):
(The 1595 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
25/tcp open smtp
111/tcp open sunrpc
139/tcp open netbios-ssn
901/tcp open samba-swat
6000/tcp open X11

mychl 02-26-2003 08:00 PM

Actually, it's open, which means samba is running....

139/tcp open netbios-ssn is for samba.

I guess the next step is to post your smb.conf file.

I did a google search and only found 2 replies, and they were only questions with no answer.......

jdklein1975 02-26-2003 08:08 PM

[global]
workgroup = MSHOME
netbios name = LINUX1
server string = Samba Server
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No

[homes]
comment = Home Directories
read only = No

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

[myshare]
comment = John Share
path = /home/johklein
valid users = johklein
read only = No
create mask = 0765

jdklein1975 02-26-2003 08:30 PM

I have actually found something. The firewall that RH configured automatiically at install was causing the problem. I turned that off and I do not get the error. Unfortunately, though, I not get the following message when I try to connect to any of my shares:

The network name cannot be found.

jdklein1975 02-26-2003 08:44 PM

I have it working now. I had a bad smb.conf file in place that I had swapped in during troubleshooting. For anyone who is having the same problem, RH configures a firewall during install automatically. To disable it or reconfigure it run /usr/sbin/lokkit while logged in as root. I just disbaled mine b/c I already had a firewall on my router. I am now running smooth on SAMBA. Thanks mychi for your help.


All times are GMT -5. The time now is 04:23 AM.