Skip to content

Samba Shares

professorkaos64 edited this page Aug 16, 2016 · 2 revisions

Table of Contents generated with DocToc

About

Mounting a samba share is immensely useful for adding files such as your music collection on another machine. This guide currently assumes you have a properly setup samba share on a remote machine, local LAN or remote.

Required packages

sudo apt-get install cifs-utils

Creating a username password file

Create .smbcredentials in a desired folder

nano ~/.smbcredentials

Fill it with the remote username and password of the target share/system

username=your_username
password=your_password

Protect the file from prying eyes

chmod 600 ~/.smbcredentials

Using Cifs

//SERVER/share /media/share_folder cifs credentials=/home/steam/.smbcredentials,iocharset=utf8,sec=ntlm  0 0

Explanation

  • "SERVER" is your remote target server
  • "share" is your remote target share name
  • "/media/share_folder" is the folder the share will be mounted (must exist)
  • "cifs" is our file system type connection protocol
  • "/home/steam/.smbcredentials" is your username / password file.
Clone this wiki locally