Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-23-2006, 10:09 PM   #1
LQ Newbie
Registered: Feb 2006
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
VPN Connected. Question about accessing shares via smbclient

My work runs a Windows 2k3 server that provides VPN access. I'm having trouble accessing data on the server once I'm connected. In windows, I have NO problem accessing the data so I know that all my network paths are correct. NOTE that I am fully connected to the problem. It's accessing stuff that I'm struggling with. I'll give my example using these generic examples:

VPN Server:
User: domain\\myname
Pass: mypass

Note, all my examples will use masked data (fake IP's)

I connect just fine and when I run "tail /var/log/messages" I see this:

Feb 23 21:11:06 NETCFG pppd[6477]: CHAP authentication succeeded
Feb 23 21:11:06 NETCFG kernel: PPP MPPE Compression module registered
Feb 23 21:11:06 NETCFG pppd[6477]: MPPE 128-bit stateless compression enabled
Feb 23 21:11:07 NETCFG pppd[6477]: local  IP address
Feb 23 21:11:07 NETCFG pppd[6477]: remote IP address
ifconfig ppp0 looks like
ppp0      Link encap:Point-to-Point Protocol
          inet addr:  P-t-P:  Mask:
          RX packets:85 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:11920 (11.6 Kb)  TX bytes:13069 (12.7 Kb)
"route" looks like:

root@NETCFG:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    *      UH    0      0        0 ppp0
localnet        *        U     0      0        0 eth0
loopback        *            U     0      0        0 lo
default         UG    1      0        0 eth0
Now, in windows (after connecting to the VPN), I can access shares by typing the following directly into the my computer address line:


Usually, when I first access them, they ask for my user and password. Which is:
User: domain\\myname
Pass: mypass

So now, I try to basically do this in linux, so I type:
smbclient -L -U domain\\myname%password

The output fromt this is:
Domain=[domain] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]

        Sharename       Type      Comment
        ---------       ----      -------
        C$              Disk      Default share
        D$              Disk      Default share
        mspclnt         Disk
session request to failed (Called name not present)
session request to 111 failed (Called name not present)
Domain=[domain] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]

        Server               Comment
        ---------            -------
        RSDLAP1              RSD's Laptop

        Workgroup            Master
        ---------            -------
So what am I doing wrong here?

Thanks in advance for the help
Old 02-24-2006, 01:15 PM   #2
LQ Newbie
Registered: Feb 2006
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Any ideas?
Old 03-13-2006, 08:44 PM   #3
Registered: Aug 2003
Posts: 31

Rep: Reputation: 15
When you say you can access shares in windows after connecting to the VPN, do you mean you are connecting to the VPN in windows, or are you connecting in linux, and connecting through the linux machine from a windows machine?

Can you ping (the server)?
I can see you have a PPP link to, but is this the computer the shares are on? In windows, see if you can do an "nslookup computer1" and see it's IP, perhaps check computer2's IP as well.
You will probably find is a network gateway, not the whole network. You will need to set up routing to allow your machine to find the rest of the network.
Old 03-13-2006, 10:12 PM   #4
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
I am not sure why you get the error messages about Called Name not present; looks to me like a misconfiguration on the server.

You did get what you asked for with the smbclient -L. You were simply asking what services were present on the server, and obviously your authentication was accepted and you were told what services are present.

If you want to connect to a share and do something, you need to use smbclient to connect. I'm not going to fool with your munged IP; your routing table makes it clear it is a 192.168.1 range, and exposing that information makes no difference anyway.

In any case, this command

smbclient //$ -U domain//myname%pass

should set you right up, connecting with the C drive and giving you the smb> prompt.

If you want to browse a share graphically with a file manager on your linux box, you'll need to first establish a mountpoint for the share, then mount it with smbmount. Then you can browse it with konqueror, or whatever, exactly as if you were working on a Windows machine, or as if you were browsing a local share in an X session.

Last edited by jiml8; 03-13-2006 at 10:13 PM.
Old 03-27-2006, 06:58 AM   #5
Registered: Nov 2005
Posts: 120

Rep: Reputation: 15
Sorry to burst in but...

Hi jiml8, can you stommach one more Q ?
I'm using Slackware 10.2 and have made a working (so far)
PDC with static ip adresses that connects my W_2000 workstations 'on the fly', i'm using 'user' mode. Now i would like to put Slacware on the slower Working stations.

The Samba client is an inbuilt function in the Samba server, right.
So i install Sambaserver on the Slackware_clients.
But what syntax should i use for the samba config on those W_stations.
Or... am i wandering in the woods again ?

What's getting me somewhat confused is that some Distros seem to have both
SambaServer and SambaClient as two different Installations/applications...

Regards. Yoron

Last edited by yoron; 03-27-2006 at 07:21 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Question accessing shares in AD Schema. zcorpio Linux - Networking 0 10-03-2005 06:13 PM
Smbclient limited to show shares? Thakowbbery Linux - Networking 0 05-18-2005 08:48 AM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
accessin windows shares from linux (smbclient) talkinggoat Linux - Networking 1 01-10-2004 11:28 PM
Accessing shares chrismagnuss Linux - Networking 1 10-02-2001 02:19 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:26 PM.

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