B
B
B1ackGh0st2016-11-10 04:48:47
Debian
B1ackGh0st, 2016-11-10 04:48:47

Why can't I set up Samba on a banana pi (raspberry pi)?

Good afternoon. I've been struggling with the samba setup for several days now. I tried a bunch of articles and cofigs. I have a USB HDD connected to the banana pi, I need to set up folder sharing. But when you enter the folder from a Win or Nix machine, it asks for a password. Here is the last config that remains. Samba version 3.6.6

[global]
  cups options = raw
  netbios name = bananapi
  default = 1Tb
  idmap config * : backend = tdb
  workgroup = SMARTHOME
  guest ok = Yes
  os level = 20
  map to guest = Bad User

[1Tb]
path = /media/USBDATA1TB/DATA
read only = No

and this config on a kbuntu 16.10 laptop does not work either. Samba version 4.3.11-Ubuntu
[global]
workgroup = SMARTHOME
netbios name = LenovoG650
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no

[Share]
  path = //media/username/Data/Shara
  guest only = yes
  public = yes
  writeable = yes
  browsable = yes

In general, I encountered this problem when switching from debian 8 to kubuntu
16.04

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-11-10
@MechanID

instead of
security = user
, put
security = share
if not specified - specify explicitly
And just in case, specify hosts allow = 10.10.0 in the header. 127.
10.10.0 replace with your own. local network for example 192.168.0. - this will allow access to all hosts from the network 192.168.0.0/24
and duplicate it in the folder description

B
B1ackGh0st, 2016-11-10
@B1ackGh0st

Figured it out, added security = user and guest account = username
[global]
workgroup = SMARTHOME
netbios name = BananaPI
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
cups options = raw
idmap config * : backend = tdb
guest ok=yes
os level=20
security=share
hosts allow=192.168.1.
guest account = username
[1Tb]
path = /media/USBDATA1TB/DATA
guest only = yes
public = yes
writeable = yes
browsable = yes
hosts allow = 192.168.1.
Thanks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question