Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-24-2004, 12:55 AM
|
#1
|
Member
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144
Rep:
|
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?
|
|
|
07-24-2004, 01:13 AM
|
#2
|
Member
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826
Rep:
|
What are you using to see linux, samba?
You can always use the smbclient command. Look at man smbclient or smbclient --help for options.
|
|
|
07-24-2004, 05:09 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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.
|
|
|
07-24-2004, 02:53 PM
|
#4
|
Member
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144
Original Poster
Rep:
|
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????????
|
|
|
07-24-2004, 03:29 PM
|
#5
|
Member
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515
Rep:
|
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
|
|
|
07-24-2004, 05:27 PM
|
#6
|
Member
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144
Original Poster
Rep:
|
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.
|
|
|
07-24-2004, 06:08 PM
|
#7
|
Member
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515
Rep:
|
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
|
|
|
07-24-2004, 06:34 PM
|
#8
|
Member
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144
Original Poster
Rep:
|
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?
|
|
|
07-25-2004, 06:07 AM
|
#9
|
Member
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515
Rep:
|
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
|
|
|
07-25-2004, 05:09 PM
|
#10
|
Member
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144
Original Poster
Rep:
|
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. 
|
|
|
07-25-2004, 05:25 PM
|
#11
|
Member
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826
Rep:
|
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.
|
|
|
07-25-2004, 08:40 PM
|
#12
|
Member
Registered: Jun 2004
Location: WA
Distribution: Slackware 11 Kernel 2.6.20.7-SMP
Posts: 144
Original Poster
Rep:
|
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?
|
|
|
07-26-2004, 04:36 PM
|
#13
|
Member
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31
Rep:
|
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?
|
|
|
07-26-2004, 07:27 PM
|
#14
|
Member
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826
Rep:
|
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.
|
|
|
07-26-2004, 07:47 PM
|
#15
|
Member
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31
Rep:
|
Well it shows it with a space, so it'll say "All Photos", so I still have the same problem.
|
|
|
All times are GMT -5. The time now is 04:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|