SAMBA Access probs!

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
DebianPlebian
Posts: 8
Joined: Thu Mar 29, 2018 7:21 am

SAMBA Access probs!

Post by DebianPlebian » Thu Sep 12, 2019 12:53 pm

I have set up a share folder from my RPI , its accessable from min Windows computer.
But the problem is when i try to access it with mt Android phone, i can connect to the samba and i
can se the folder but i cant open it! It used to work , anyone know what to do ?

ghettopi
Posts: 37
Joined: Tue Jul 30, 2019 8:17 pm

Re: SAMBA Access probs!

Post by ghettopi » Fri Sep 13, 2019 11:38 pm

No one is going to be able to help without seeing a copy of your SAMBA settings dude.

DebianPlebian
Posts: 8
Joined: Thu Mar 29, 2018 7:21 am

Re: SAMBA Access probs!

Post by DebianPlebian » Thu Sep 26, 2019 9:56 am

workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0

panic action = /usr/share/samba/panic-action %d

security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes

passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user

load printers = no
printcap name = /dev/null
disable spoolss = yes

[dietpi]
comment = DietPi Share
path = /xxxxxx/xxxx/xxx (obv something else)
browseable = yes
create mask = 0775
directory mask = 0775
valid users = root
guest ok = yes
writeable = yes
max connections = 8

User avatar
MichaIng
Site Admin
Posts: 1728
Joined: Sat Nov 18, 2017 5:21 pm

Re: SAMBA Access probs!

Post by MichaIng » Fri Sep 27, 2019 11:49 am

Hmm long as you connect from your Android with user root and matching password, in case adjust with smbpasswd, then it should work. Not sure about the guest setting, probably currently the Android is connecting as guest with limited permissions?

novitibo
Posts: 29
Joined: Mon Feb 29, 2016 4:11 pm

Re: SAMBA Access probs!

Post by novitibo » Fri Sep 27, 2019 2:23 pm

hmm, same issue here.
is important smb version 1,2,3?

User avatar
MichaIng
Site Admin
Posts: 1728
Joined: Sat Nov 18, 2017 5:21 pm

Re: SAMBA Access probs!

Post by MichaIng » Fri Sep 27, 2019 4:34 pm

Good question, I cannot derive it from the package info: https://packages.debian.org/buster/cifs-utils
However all moreless current clients should support version 3 and the server as well. Not sure if its fully backwards compatible until version 1.

Are you guys getting some logs on server and/or client?

novitibo
Posts: 29
Joined: Mon Feb 29, 2016 4:11 pm

Re: SAMBA Access probs!

Post by novitibo » Sat Sep 28, 2019 9:43 am

/var/log/samba/%m.logs are empty ... size 0 :cry: no help there
is to force:
min protocol = SMB2
max protocol = SMB2
good idea?

User avatar
MichaIng
Site Admin
Posts: 1728
Joined: Sat Nov 18, 2017 5:21 pm

Re: SAMBA Access probs!

Post by MichaIng » Sat Sep 28, 2019 1:32 pm

From the server, to be max compatible, no protocol version ranges should be defined, AFAIK.

Does journalctl -r (system log) give any hint, right after a connection attempt?

Post Reply