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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smbmount to win2k machine

Status
Not open for further replies.

ekbranson

Programmer
Jan 12, 2004
52
US
Ok, first of all, I am new to linux. What I am trying to do is mount a drive from a linux server to a WIN2k computer on a domain. Samba is installed and I can sign on as root. The problem I encounter is that I can not establish a connection with any computer on the domain except a windows machine that I use.

smbmount //win2k_computer/test test/ -o username=myusername
timeout connecting to 10.250.32.45:445
timeout connecting to 10.250.32.45:139
Error connecting to 10.250.32.45 (Operation already in progress)
26461: Connection to lotis2 failed
SMB connection failed

Has anybody had a problem connecting to computers on a domain?
 
hmmm... looks like an iptables issue.

issue:

iptable -L

and take a look whether ports 445 and 139 are closed or open.

Chacal, Inc.
 
The iptable is a linux command? I just removed windows firewall from one of my test computers and now I have

[root@doc1 me]# mount -t smbfs //win_XP_comp/"test share" test/
Password:
Anonymous login successful
29432: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

Oh yeah, I also am using the mount command now. As far as I know the ports are not restricted on the windows computers.
 
Are you logged in under a user name that is the same as a user on the windows box?
 
Forget about smbmount for the time being. Try conencting with smbclient //[windows_machine]/[share] -U [domain_username] and see if you can get connected. Also, //win_XP_comp/"test share" should be "//win_XP_comp/test share" if I'm not mistaken.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Ok, i figured this out. zeland thanks for the suggestion, this is how I figured it out. The smbclient would connect using the domain of the computer.

smbclient //win_machine/ -U username -W domain

However, I had been trying to mount the windows box like this

smbmount //win_machine/share mnt_point/ -o username=domain\user

and this did not work. SO, I found if you put the username in quotes it works. Hence a frustring day with an easy solution.

This was the fix

smbmount //win_machine/share mnt_point/ -o username="domain\user"

Thanks everyone for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top