I am going to move my older Vero 4K to my mom’s house with a direct HDD connected to it. I have my external HDD formatted as ext4 which works fine on the Vero 4K itself, installed samba, but cannot reach the shares. I used the guide in the Wiki, but kept Samba to version 3, have that on my OpenWRT router too and works flawlessly, though on the Vero it just doesn’t want to connect from the same Windows PC.
I am using \192.168.2.143 (which is 100% correct, I am connecting through SSH with that IP address perfectly fine) and it just says to check the spelling of the name blabla.
osmc@osmc:~$ smbclient -L localhost
Enter WORKGROUP\osmc's password:
````osmc@osmc:~$ smbclient -L localhost
Enter WORKGROUP\osmc's password:
Anonymous login successful
Sharename Type Comment
--------- ---- -------
osmc Disk OSMC Home Directory
IPC$ IPC IPC Service (Samba 4.13.13-Debian)
MediaPlayer Disk Auto-mount Volume
SMB1 disabled -- no workgroup available
`
That gives me the warning that the password is wrong, thought I am a 100% sure it isn’t.
C:\Windows\system32>net use o: \\192.168.2.143\osmc /U:osmc
Geef het wachtwoord voor 'osmc' op om te verbinden met '192.168.2.143':
Systeemfout 86.
Het opgegeven netwerkwachtwoord is onjuist.
How can I make sure Samba isn’t running as v1? In the settings menu it only gives the smbclient option. In the My OSMC settings, there is no such setting at all.
Now I am getting a different result with the default osmc as password:
C:\Windows\system32>net use o: \\192.168.2.143\osmc /U:osmc
Geef het wachtwoord voor 'osmc' op om te verbinden met '192.168.2.143':
De opdracht is voltooid.
Will have to change the sambapassword and it works after this!
Will reboot and check if I have to redo the netuse command every time. Weird that I have to use that command in the first place, but must be a logical explanation for it of course, just not known by me lol.
Did you change the password? Otherwise obliviously it is the default one.
Well you don’t have to use the command in the first place, I assume it was a password problem in the first place and using the command line shows you that quicker.
I never even got to enter the user name or password in the first place when trying to access it from the file explorer through \192.168.2.143 at that moment I just got an error. While that works with my OpenWRT samba server, so (probably incorrectly) assumed it would work the same.
What is the normal way to get to a samba share in Windows to the Vero/OSMC samba server? The wiki doesn’t say.
I had to change the samba password with smbpasswd -a osmc
I forgot that those passwords are different from each other, and changed it, but it is strange that it only worked when using the net use command and not from file explorer.
There was no password for it stored anywhere, but I found the answer to my own question.
The reason my OpenWRT Samba worked immediately, was because my PC had the same username as my samba user. I just added the user osmc for this source in Windows references (if that is the English translation for what I see in Dutch) and it works from the file explorer. Learned something new today!
In the address bar of Windows Explorer typing two backslashes followed by the ip address or device name is a good place to start. If you right click on your share your wanting to transfer from/to you can pin a shortcut to the sidebar if you use that or just copy and then go to your desktop or wherever and tell it to paste a shortcut for easy access. You could map it as a drive letter but that can make Windows try to access the drive when it doesn’t need to.
The issue was, that when typing in \192.168.2.143 or \192.168.2.143\osmc I just blatantly got an error, so I couldn’t click anywhere. When adding the credential in “Credential Manager”, it started to work.
It gave me this error:
Windows can not access \\192.168.2.143
Check the spelling of the name. Otherwise there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
Error code:0x80004005 Unspecified error