Install Samba file sharing

| January 30th, 2016

Install Samba file sharing

sudo apt-get install samba

edit the /etc/samba/smb.conf

sudo nano /etc/samba/smb.conf

If you wish for the users home directories to be visable when a samba user has been authed then around line number 193 (press CRTL + C) to check the current line number, change “read only” to from yes to no.

[homes]
 comment = Home Directories
 browseable = no
# By default, the home directories are exported read-only. Change the
 # next parameter to 'no' if you want to be able to write to them.
 read only = no

To add the whole system files to be visable accross the network add the following lines in the config file.

[system]
 comment = System
 path = /
 browseable = no
 writable = yes
 force user = root

Add a external usb drive as a network share

[Media]
 comments = 2TB WD Passport USB Drive
 path = /media/Media
 valid users = osmc
 browseable = yes
 writable = yes
 force user = root

Restart the samba service

sudo service smbd restart

Add a samba user called “osmc”.

$ sudo smbpasswd -a osmc
  New SMB password:
  Retype new SMB password:
  Added user osmc.

Samba

| May 18th, 2013

Install Samba

sudo apt-get install samba samba-common-bin

edit /etc/samba/smb.conf

[homes]
comment = Home Directories
browseable = no

# read only = yes
writeable = yes

Restart Samba, with::

sudo service samba restart

Set the password for the pi user so you can login via another comptuer.

sudo smbpasswd -a pi