OpenELEC Forum
Samba Configuration help - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: SPECIAL SYSTEMS (https://forum.openelec.tv/forumdisplay.php?fid=10)
+---- Forum: Solidrun CuBox-I (https://forum.openelec.tv/forumdisplay.php?fid=17)
+----- Forum: Usage (https://forum.openelec.tv/forumdisplay.php?fid=19)
+----- Thread: Samba Configuration help (/showthread.php?tid=72062)



Samba Configuration help - thatonedude - 07-16-2014

I have been trying to get USB drive I have connected to my Cubox-i4 to be shared with my computer securely over samba. So far this is my samba.conf
Code:
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
# samba.conf

# This configuration file allows you to customize the samba shares
# available from your machine

[global]
server string = XBMC
workgroup = WORKGROUP
netbios name = %h
security = user
guest account = guest
map to guest = bad user
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
wins support = yes
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 1
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = enabled
use sendfile = yes


# Using the following configurations as a template allows you to add
# writable shares of disks and paths under /storage

[Update]
path = /storage/.update
available = yes
browsable = yes
public = no
writable = yes
guest ok = no
valid users = thatonedude
root preexec = mkdir -p /storage/.update

[Videos]
path = /var/media/sda1-ata-WDC_WD30EZRX-00S
available = yes
browsable = yes
public = no
writable = yes
guest ok = no
valid users = thatonedude
root preexec = mkdir -p /storage/videos

The other shares (music, logfiles, emulators, ...) are all the same as the two above except for the paths for now. But my issue is I am not sure where to add Users (usernames/password). Also before when I turned authentication on through the Openelec configuration program on XBMC I could only connect through Linux machines and not windows (I need windows machines to be able to map the drive so I believe Samba shares are my only option since Openelec does not have FTP). So if someone could tell what and where I need to add to make this work I would greatly appreciate it. I would also love to hear if there is a better way to share my files securely.

Thank you in advance for any help.