next up previous
Next: Voodoo Magic Up: Using Samba Previous: Getting smbfs in your

Mounting a Samba Share

The rest is cake. Read man mount if you haven't, and then try a:

mount -t smbfs -o username=<name>,password=<passwd> //sambashare /mountpoint

The samba share should mount on your mountpoint.

If that doesn't work -- like if you have a username with a space in it (argh! the Windoze aesthetic is becoming the standard!), you'll need to create a so-called ``credentials file'' and put your info in there. The formatting goes like this:

username=8TRACK0/Nori Heikkinen
password=mypassword

... where ``8TRACK0'' is my domain, ``Nori Heikkinen'' is my username, and ``mypassword'' is my password (not really, ha ha). You can call this file whatever you want to, and put it wherever you want. I called mine .smbmount-ned and put it in my homedir; it really doesn't matter.

Now that you've got that file, you can use it to mount the share:

mount -t smbfs -o credentials=/home/nori/.smbmount-ned //sambashare /mountpoint

Once this works and you have the share mounted, you can then stick a similar line in your /etc/fstab, and it will be mounted automatically every time you boot up. My line looks like this:

//8track/NED    /8track/ned     smbfs credentials=/home/nori/.smbmount-ned,rw


next up previous
Next: Voodoo Magic Up: Using Samba Previous: Getting smbfs in your
Nori Heikkinen 2003-07-08