mounting a samba share locally

This way you can mount a remote samba share locally.

It is useful to make some applications which do not support smb:// filepath work on remote files thinking they are actually local files.

First make sure you have installed smbfs via the package manager (or sudo apt-get install smbfs ).

Then load smbfs module
sudo modprobe smbfs
if you want it being loaded automatically at every boot type
sudo echo ’smbfs’ >> /etc/modules

Finally mount your remote share as follows

sudo mount -t smbfs -o username=WINDOWSUSER,password=WINDOWSPASSWORD,
uid=LINUXUSER,gid=LINUXGROUP //YOURSERVER/SHARE /mountpoint

if needed also put dmask=777,fmask=777,umask=777 options after -o argument. Note that this makes the mounted files and folder totally accessible by anybody!

Note: if you get an error and tail dmesg shows “smbfs: mount_data version 1919251317 is not supported” you did not istall smbfs package, did you?

Reference: http://www.debian-administration.org/articles/165

 

| Print This Post Print This Post | Email This Post Email This Post
RSS 2.0 | Trackback | Comment

No Responses to “mounting a samba share locally”


Leave a Reply

  • Page visits

    • 7
  • Polls

    Did you manage using the internal modem?

    View Results

    Loading ... Loading ...
  • Categories

  • Meta

  • Recent Comments

  • Archives

  • Most Visited

  • Linux On Laptops

    -->