LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2004, 08:58 AM   #1
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
mapping windows network drives on a linux host


I have created a directoy on my linux machine called 'WindowsApp'. I want to mount a windows share called '\\WindowsPCName\Apps' to this directoy I created.

I have Samba installed on my machine and am able to see the windows share using smbclient '\\ip address\app'. But is it possible to mount it on to this directory.


Secondly, to use the SMB client I have created an username and password that is the same as what we have on our domain and this allows me to connect to the network share. But out of curiosity i want to connect to the network share when logged in as root.

I have looked at the help file which suggest -u and -p but they dont seem to be working... Perhaps I'm typing it wrong. What would be the exact format in which it needs to be typed?

Many thanks for the help?
 
Old 04-30-2004, 09:06 AM   #2
zoinksbob
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Rep: Reputation: 0
You can mount a Windows share like this

mount -t smbfs //othermachine/share /mnt/share -o username=something

this works like any other mount command. -t smbfs means the mount type will be samba, and the thing at the end can be used to access the share with whatever username you want. After you type this it will prompt you for a password. You can also do something like this


mount -t smbfs //othermachine/share /mnt/share -o credentials=~/mynameFile

this tells the mount command to look for the username and password in the file "mynameFile"

for more info try "man smbmount"

hope that helps
 
Old 04-30-2004, 11:00 AM   #3
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
that works fine. Thanks.
 
  


Reply


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
mapping network drives foliva SUSE / openSUSE 2 09-20-2005 03:02 PM
Permanently mapping a Windows network share gvaught Linux - Networking 7 05-28-2004 10:14 PM
Having some problems mapping windows drives for my rh9 comp roguecoolman Linux - Networking 1 02-12-2004 12:40 PM
Mapping Linux Drives on XP agallant Programming 2 12-15-2003 09:29 AM
Mapping Remote Windows Drives Odd_Bloke Linux - Newbie 3 08-29-2003 01:47 PM


All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration