OSMC Change SMB (Samba) credentials

Hello OSMC community!

I’ve been playing with an OSMC on the Pi 2b for a bit, and I’m really liking it. It integrates well with the network I have installed, mainly the Ubuntu Samba server that I host a boat-load of data on.

The problem I’m having is with OSMC logging into the Samba server. It works, but it’s using my personal credentials, which I can’t have on a device that’s shared. What I’d like to do is change the credentials OSMC uses to login to the Samba server on my network without resetting the Pi completely. I have a new account for the Pi set up on the Samba server, and have set its permissions accordingly, I just can’t get the Pi to use that account. Do any of you know where I can find these settings?

Found it!
The file SMB passwords are written to is
~/.kodi/userdata/passwords.xml
Example
<passwords> <path> <from pathversion="1">smb://SIRESPEAK/muzic</from> <to pathversion="1">smb://USERNAME:PASSWORD@SIRESPEAK/muzic/</to> </path> <path> <from pathversion="1">smb://SIRESPEAK/share</from> <to pathversion="1">smb://pi:osmc@SIRESPEAK/share/</to> </path> </passwords>
Edit: Silly Snake put passwords online. That’s a nope!

1 Like