ops… i have made some test following the first reply here:
I have installed autofs by ssh.
Add the line to etc/auto.master
on etc/auto.smb.shares:
/mnt/192.168.1.2/ -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc,vers=3.0 ://192.168.1.2/
and i have add the credentials on .smbcredentials files.
After that i have launch:
sudo systemctl restart autofs
But i obtain an errors when i try to mount:
ls -lah /mnt/192.168.1.2/
I have tryed also to follow the debug whitout understand how i commit an errors. the question it’s:
It’s need to remove the previous smb shared before ?