by johnberg » 01 Aug 2017, 21:56
Thank you Frank,
I did install winscp portable
This is my etc/samba/smb-dev.conf -file on Raspberry Pi B now:
[global]
workgroup = RUNENET
server string = RuneAudio Player
dns proxy = no
log level = 0
syslog = 0
security = share
guest account = root
map to guest = bad user
load printers = no
domain master = no
local master = no
preferred master = no
#======================= Share Definitions =======================
directory mask = 0775
create mask = 0775
[music_store]
comment = Music Datastore root (/mnt/MPD)
path = /mnt/MPD/
read only = no
public = yes
follow symlinks = yes
wide links = yes
[mpd]
comment = MPD directory (/var/lib/mpd/)
path = /var/lib/mpd/
read only = no
public = yes
follow symlinks = yes
wide links = yes
[www]
comment = RuneAudio webroot (/var/www/)
path = /var/www/
read only = no
public = yes
follow symlinks = yes
wide links = yes
[etc]
comment = RuneAudio sys config dir (/etc)
path = /etc/
read only = no
public = yes
follow symlinks = yes
wide links = yes
Do I have to delete this text now and replace completely for:
[global]
# netbios name = [name]
workgroup = WORKGROUP
server string = Samba %v on %L
wins support = yes
domain master = yes
preferred master = yes
local master = yes
os level = 255
dns proxy = no
log level = 0
socket options = IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
min receivefile size = 2048
use sendfile = yes
aio read size = 2048
aio write size = 2048
write cache size = 1024000
read raw = yes
write raw = yes
getwd cache = yes
oplocks = yes
max xmit = 32768
dead time = 15
large readwrite = yes
guest ok = yes
map to guest = bad user
encrypt passwords = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[readwrite]
comment = browseable, read, write, guess ok, no password
path = /mnt/MPD/USB/hdd/readwrite
read only = no
[read]
comment = browseable, read only, guess ok, no password
path = /mnt/MPD/USB/hdd/read
[root]
comment = hidden, read, write, root with password only, from [IP1] [IP2] only
path = /mnt/MPD/USB/root
browseable = no
read only = no
guest ok = no
valid users = root
# host allow = [IP1] [IP2]
What to type in [name] ????
The next three are this Putty commands?
Test smb.conf parameters
Fix minimum rlimit_max
Restart
Should samba work now after this 4 handlings?
By the way is this tutorial for Raspberry Pi 3 or for all versions?
I have an older Raspberry Pi B model (version sv0.3-beta (29/10/2014) should this also work with this script?