LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2005, 03:16 AM   #1
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15
smbclient - connect to a Win share


Hi!

Can anyone help me because I can't connect to a windows share with smbclient??

The share is \\brwwd\toShare\Local\

and I try like this to connect to it:

smbclient //brwwd/toShare/Local/

and the message I get is
Password:
Anonymous login successful
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

I'm on AIX 5.2 and the win server is running Windows 2003 Server.

Thanks in advance,
Chris
 
Old 12-12-2005, 06:17 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
how about just "//brwwd/toShare"? the "Local/" is just the path of stuff inside the share

Last edited by spooon; 12-12-2005 at 06:58 AM.
 
Old 12-12-2005, 06:27 AM   #3
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Hi!

I tried that, even it's not the case...and it's not working. The shared folder is "Local"...toShare contains folders that are shared...each one with its access rights.

Thanks for your reply,
Chris
 
Old 12-12-2005, 06:59 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
what does "smbclient -L brwwd" or "smbclient -U <username> -L brwwd" show?
 
Old 12-12-2005, 07:46 AM   #5
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Hi!


smbclient -U user -L server

shows a lot of Sharenames, Servers and Workgroups...with comment on their right side..

But nothing about my share - "Local" ...even though I can access it from Windows.

Thanks for your help,
Chris
 
Old 12-12-2005, 08:29 AM   #6
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
mount -t smbfs -o username=<windows-username>,password=<windows-user-pass> //windows-box-ip-or-host-name/sharename /path-to-mount

Prior to that either create new directory of /path-to-mount or use some existing directory.


e.g.
mkdir /mp3-from-windows
mount -t smbfs -o username=microsoft,password=windows //192.168.55.2/mp3 /mp3-from-windows


Thats it.

..amit..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbclient - connect to a Win share loopoo Linux - Newbie 2 12-12-2005 05:54 AM
smbclient connects to a M$ share, smbmount fails douchev Linux - Networking 2 09-03-2004 02:26 AM
smbclient to win2k3 share ew0kian Linux - Software 1 07-29-2003 07:21 PM
Anyway to make smbclient show full name of share? chemzar Linux - Networking 0 05-13-2003 12:32 PM
Win XP doesnt see samba share, but can connect to it. bripage Linux - Software 25 04-26-2003 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration