Solved

Connecting to NT network from Linux

Posted on 2002-07-30
5
196 Views
Last Modified: 2010-04-20
I just installed Slackware on my laptop, along with the samba client.  However, since I have never tried to connect to a windows network via Linux, I'm not sure how to do it.  There is no "net use" command, or anything of that nature.  If someone can give me some help...
0
Comment
Question by:AsenathWaite
  • 2
  • 2
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 7188997
smbclient
xsmbrowser
LinNeighborhood
0
 
LVL 1

Expert Comment

by:leochan72
ID: 7191233
You can use command "mount" to mount the windows share. Then you can get connected to windows shares:

1) Create a directory, for example, winshare in linux
   mkdir winshare

2) mount the windows share in that directoy
   mount -t smbfs -o username=name, password=password //Windows/Share
(The above comment should be in one line, name is the windows user name and password is the user password)

3) change to that directory and you can see the files. Of course, before you do the mount, you should have samba running.

Leo
0
 
LVL 1

Expert Comment

by:leochan72
ID: 7191237
Sorry, the 2) comment should be :

mount -t smbfs -o username=name,password=pwd //Windows/Share /winshare

where name is username and pwd is user password.

Leo
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7191543
mount itself cannot do it, you need smbmount for that (even, depending on you installation and mount version, mount calls smbmount).
Anyway, the smbmount looks like:

  smbmount //Windows/Share /winshare -o username=name,password=pwd
0
 
LVL 20

Expert Comment

by:Gns
ID: 7193137
... and dont forget that you might have to specify a NT Domain, which would mean the above should be:
smbmount //Windows/Share /winshare -o username=name,password=pwd,workgroup=DomainnameOrWorkgroup

or

mount -t smbfs -o username=name,password=pwd,workgroup=DomainnameOrWorkgroup //Windows/Share /winshare

-- Glenn
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now