LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mapping windows network drives on a linux host (https://www.linuxquestions.org/questions/linux-newbie-8/mapping-windows-network-drives-on-a-linux-host-176310/)

kopite2012 04-30-2004 07:58 AM

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?

zoinksbob 04-30-2004 08:06 AM

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

kopite2012 04-30-2004 10:00 AM

that works fine. Thanks.


All times are GMT -5. The time now is 09:03 AM.