Skip to content

Configuring Samba

Volodymyr Huz edited this page Feb 23, 2020 · 3 revisions

Configure Samba users and shares.

Install Samba

sudo apt-get install samba

Add support Samba shares by Windows PC

sudo nano /etc/samba/smb.conf

Add the following record to enable WINS support

wins support = yes

Share specific folder

[openHAB2-conf]
  comment=openHAB2 site configuration
  path=/etc/openhab2
  browseable=Yes
  writeable=Yes
  only guest=no
  public=no
  create mask=0777
  directory mask=0777

Add user as Samba user and setup password

sudo smbpasswd -a osmc

Set user as owner and give him write access to the share, for example openhab user on openhab shares

sudo chown -hR openhab:openhab /etc/openhab2 /opt/openhab2/conf

Restart Samba to load the new settings

sudo systemctl restart smbd.service

Clone this wiki locally