LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-24-2004, 12:55 AM   #1
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Rep: Reputation: 15
Question How do I let Linux see Windows Shared Dirctories


Within my test bed arena, WIN2000 pro can see the Linux shared folder, but I can't figure out how to view the Windows shared folders from Linux.
Can anybody help?
 
Old 07-24-2004, 01:13 AM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
What are you using to see linux, samba?
You can always use the smbclient command. Look at man smbclient or smbclient --help for options.
 
Old 07-24-2004, 05:09 AM   #3
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
smbclient -L <win system IP> -U <win system username>

will give you a list of shares

smbmount //winsystemip_or_name/sharename /<mount point> -o username=<win username>

will mount the win share on /<mountpoint>

If you are using RedHat, you should find Network Server menuitem when you clock the gnome button on the toolbar.
LinNeighborhood is another option.
 
Old 07-24-2004, 02:53 PM   #4
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Original Poster
Rep: Reputation: 15
session request failed (called name not present)

Error returning browse list: NT_STATUS_ACCESS_DENIED

What (called name) is it looking for?
The shared directory is full open access to everybody, so I don't understand access denied.

I read the man pages and took some notes, but I didn't see anything about (called name). Maybe I missed it, tried to specify computer name as -n <NetBIOS name> that didn't work either. Also tried to specify IP via -I <IP Address> nope, nodda, nothing.

Any suggestions????????
 
Old 07-24-2004, 03:29 PM   #5
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
When you make a connection to a w2k machine you need to add the domain name to the user name
eg
mount -t smbfs -o username="UNISYS02\Administrator",passwd=Alpha //comp02/shares /mnt/smb
where UNISYS02 is the domain name
 
Old 07-24-2004, 05:27 PM   #6
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Original Poster
Rep: Reputation: 15
Tried that with the following result,
1931: tree connect faled: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

Does that mean Win2k is not allowing access? That's strange I selected the folder to be shared, with total access.
 
Old 07-24-2004, 06:08 PM   #7
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Try using the ip adres of the w2k box
eg
mount -t smbfs -o username="UNISYS02\Administrator",passwd=Alpha //xxx.xxx.xxx.xxx/shares /mnt/smb
 
Old 07-24-2004, 06:34 PM   #8
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Original Poster
Rep: Reputation: 15
I did that as well same error as post#6

First thing that happens is that it tries to start a session;

1970: session request to XXX.XXX.XXX.XXX failed (Called name not present)
1970: session request to XXX failed (Called name not present)

Then it asks for a;
Password: [enter]

Then;
Anonymous login successful

Then;
1970: tree connect failure: ERRDOS - ERRnoaccess ( Access denied. )

Finally;
SMB connection failed

Does that help any?
 
Old 07-25-2004, 06:07 AM   #9
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
add the ip adress to the /etc/hosts file
eg
xxx.xxx.xxx.xxx comp02

now you can use

mount -t smbfs -o username="UNISYS02\Administrator",passwd=Alpha //comp02/shares /mnt/smb
 
Old 07-25-2004, 05:09 PM   #10
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Original Poster
Rep: Reputation: 15
Actually I figured it out, it was the Win2K box did not recognize the Linux box as a valid user.
So I added a new user to the list, then I was able to mount the shared folder with the new user name I created.

After that I created the linux box as a proxy server. After a little reading and debugging the server is up and running beautifully.

Now I'm moving on to another server package.

This is actually getting easier to work with LINUX, once I started to get the hang of it.

Thanks to everybody for the help and advice.
 
Old 07-25-2004, 05:25 PM   #11
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
What type of security are you running on the Win2k box and how did you set up the proxy server?

Glad you're enjoying linux. I know I do.
 
Old 07-25-2004, 08:40 PM   #12
Wolfy
Member
 
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144

Original Poster
Rep: Reputation: 15
I'm not sure what your asking exactly.
Win2k security is standard... I just needed to add a user and log into the machine as that user.
The Proxy server took some do'in though. I had to do alot of reading on how and why things need to be setup. Even then I had to do alot of trouble shooting to get the damn thing to startup. Once I did that though it purrs like a kitten, and everyone on the LAN gets HTTP service. Overall security is handled by the firewall on the proxy server to protect the LAN.

Is that what you were asking?
 
Old 07-26-2004, 04:36 PM   #13
inc0gs
Member
 
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31

Rep: Reputation: 15
Quote:
Originally posted by ppuru
smbclient -L <win system IP> -U <win system username>

will give you a list of shares

smbmount //winsystemip_or_name/sharename /<mount point> -o username=<win username>

will mount the win share on /<mountpoint>

If you are using RedHat, you should find Network Server menuitem when you clock the gnome button on the toolbar.
LinNeighborhood is another option.
how do I add a space in the sharename?

like the share name is All Photos, if I type it in like that, I get "Could not resolve mount point Photos", if I try using %20 for space, I get no such share. is there a way I can do this without renaming the shared folder in windows?
 
Old 07-26-2004, 07:27 PM   #14
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Well, first try using the -L option to list the shares. Then just copy what it shows you as the share name and you should be good. I want to say it eliminates the spaces but I can't remember for sure and I can't test it right now to verify it.
So, smbclient -L <ip_address or machine_name>
give password and view the list.
Then, smbclient //machine/share -U <username>%<password> or whatever format you prefer. I think that will help you.
 
Old 07-26-2004, 07:47 PM   #15
inc0gs
Member
 
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31

Rep: Reputation: 15
Well it shows it with a space, so it'll say "All Photos", so I still have the same problem.
 
  


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
Using windows shared printer from linux DaveAtFGI Linux - Newbie 6 10-29-2005 04:07 PM
cant get linux to go into windows shared folders kamowa Linux - Networking 4 09-22-2005 12:02 PM
Shared Ram from Linux to Windows m_simin Programming 5 06-13-2005 11:19 AM
Shared Windows and Linux Partition chrisfirestar Linux - Hardware 7 12-11-2003 07:58 PM
Windows and Linux shared disk jrpretz Linux - Newbie 3 07-30-2003 05:25 PM

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

All times are GMT -5. The time now is 08:33 AM.

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