I tried to share harddrive via samba and so I made an sudo apt-get install samba, samba-common on my yunohost server.
I conf the smb.conf. I add pi in groups, allwow guest, etc. and … nothing. $
the prob is that : I made that on others raspberry (but without yunohost) and that work perfectly so my question is "Is there a other thing to do ? (a ynohost configuration ?, open a port or something ???).
Note : seems also that samba reset user password. I had to recreate the pi account and my user password for yunohost? is that really a good idea to install samba ?? I have doublt now
Hi @elekis,
I roughly had the same experiences with samba on yunohost. I also successfully set up a samba server on an ArchLinux, but unfortunately I didn’t make it on an armbian with yunohost.
I’m very interessted in solutions! Maybe someone in this forum might help us.
I don’t know much about Samba, but I expect it to need a port to be able to connect. So you should make sure that the port used by Samba is opened in Yunohost’s firewall… See yunohost firewall --help.
Indeed, opening ports 137, 138, 139 and 445 for both tcp ad udp fixed it for me.
But in fact I think that yunohost firewall allow TCP 445 should be enough.
No luck with samba on rpi here too. Opening ports does not help
There must be something yunohost-specific, as I’ve done that easily before, without knowing much of networking.
Could it be ssh or dns related?
I think it would be great to have a yunohost app to configure samba on yunohost, and make it simple to choose the shared folders and the rights on each one (readable only, writeable, protected with a password etc…).
But I have no idea of the difficulty, and have no skill to do that…
Maybe starting with a how to could help too, with example of the config file and explanation about access rights of folders and samba.
It seems I’m one step further:
In my smb.conf I changed to the following:
wins support = no
wins server = 192.168.1.1
and now I’m able to see my samba server in the Win10 Explorer. Unfortunately I cannot access the shared folders…
I’ll keep you posted if I find a solution.
Samba shares work well for me (Yunohost 3.3.3 => several stations on Debian)
Just configure the /etc/samba/smb.conf ; by example for a large access :
[ynhDocs]
path = /media/cle
public = yes
writable = yes
guest ok = yes
comment = Documents YNH
and open the port 445 as highlighted by @jojo
Does using samba (as supposed in the comments above without password etc) and opening the port decrease my security?
And it is only accessable from my local LAN?
The SMB 1.0/CIFS Client Feature in Windows 10 have to be enabled
And here are also some modifications to make SMB more efficient than NFS (ref)
unix charset = UTF-8
server signing = no
read raw = yes
write raw = yes
strict locking = auto
oplocks = yes
use sendfile = true
max xmit = 65535
dead time = 15
getwd cache = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
use sendfile = true
aio read size = 16384
aio write size = 16384
And to limit the Samba to your local network
While that dont’t replace a firewall but it could help you could limit access to you localnetwork by adding this line: interfaces = 127.0.0.0/8 192.168.0.0/16
Hello,
I have the same problem, I tried many possibilities, but nothing works. I can see the share, but when I click on the share type my use and password, connexion is refused.