I got the samba working under linux (Raspberry Pi 3 running OSMC) after few hours for tinkering and reading, all I had to do is mount the drive in fstab which contained the .xml file.
sudo mkdir /mnt/myname
sudo nano /etc/fstab
//mysambaserver/mysambafolder/ /mnt/myname/ cifs noauto,x-systemd.automount,username=name,password=name,uid= 1000,gid=1000,iocharset=utf8 0 0
and it worked like charm seems kinda faster too comparing to ftp but that's only for the linux boxes, I still got one AFTV which is android as we all know and can't figure it out how to auto mount the drive in android. So for now I'll stick with ftp until I can figure out the android part.