Solved

Connecting from Linux to Windows through Samba

Posted on 2004-09-08
9
2,708 Views
Last Modified: 2012-06-27
I'm having a problem connecting from a Linux box to a Windows2000 machine using samba. When I run

smbclient -L gonzo

I get the following:

added interface ip=10.0.0.5 bcast=10.0.0.255 nmask=255.255.255.0
timeout connecting to 10.0.0.4:139
Error connecting to 10.0.0.4 (Operation already in progress)
Connection to gonzo failed

What does this mean, and what do I have to do to make it work?

The Windows2k machine has one folder shared, which has read permission for everyone. I've checked that the workgroup settings are ok and everything else seems to be ok with the w2k box. I've also got another linux box (server) running a samba server in my network. Connecting to it from both the  w2k and linux machines works fine.

Thanks for any comments or suggestions!
0
Comment
Question by:fredrikbostrom
9 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 100 total points
ID: 12012091
Is the w2k box at 10.0.0.4?

Does this Linux system have a firewall active that could be blocking things?

It would be helpful to know what Linux you are running.
0
 

Author Comment

by:fredrikbostrom
ID: 12013653
Yes, the w2k is at 10.0.0.4 and the Linux is at 10.0.0.5.

I'm using SuSE linux and I haven't configured a firewall although there might be some default settings. But considering that the connection to the linux server (at 10.0.0.10) is working (samba to samba), shouldn't the connection to the w2k box work?
0
 
LVL 2

Accepted Solution

by:
stanford_16 earned 100 total points
ID: 12017518
fredrik,

I have three suggestions:

First, try restarting your samba processes (smbd and nmbd).  This can get rid of current (failed connections).

Second, go ahead and add the username to your smbclient connect command.

# smbclient -L gonzo -U <username>

Third, get the name service out of the way and try

# smbclient -L gonzo -U <username> -I <gonzo's_IP>

Good luck!
A
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

Author Comment

by:fredrikbostrom
ID: 12020772
Thanks for your suggestions. Unfortunately non of them provided me with a solution. The same error message is displayed after each command. I don't have smbd and nmbd running on the linux box from which I'm connecting to the w2k. The only remotely relevant process running is smbfs and executing /etc/init.d/smbfs restart gives me

Umount SMB File System                                                         unused
Mount SMB File System                                                          unused

if that is of any help. Tkanks!
0
 
LVL 4

Assisted Solution

by:Kooroo
Kooroo earned 100 total points
ID: 12020917
smbclient "\\UNC_PATH\SHARENAME" -I 10.0.0.4 -U username

so you should try something like : smbclient \\gonzo\share -I 10.0.0.4 -U Administrator

0
 
LVL 3

Assisted Solution

by:ivyfranklin
ivyfranklin earned 100 total points
ID: 12028618
Also, you might need to add the following to Kooroo command assuming that the windows box's name is gonzo

-U gonzo\Administrator
0
 

Assisted Solution

by:aadilfahad
aadilfahad earned 100 total points
ID: 12031531
smbclient "\\UNC_PATH\SHARENAME" -I 10.0.0.4 -U username
smbclient \\gonzo\share -I 10.0.0.4 -U Administrator
or further help

www.linuxjalali.com
0
 

Author Comment

by:fredrikbostrom
ID: 12033447
Thanks for your great comments. As it seems, you are all right. The problem was merely a firewall on the w2k box disallowing incoming traffic. The problem was resolved by making it allow incoming events from the local subnet.

Thanks for your help!
0
 

Expert Comment

by:terry_cole
ID: 23735745
If you are having this issue with XP and your firewall is off and you still have this problem.
Enable the firewall then disable it again.
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Samba mount a Windows share command syntax??? 2 66
IPA client Config problems 2 215
iptables ubuntu BLOCK all 2 85
What are recommended OS for exim mail server? 10 116
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question