SMB browsing is disabled by default, you’ll need to map a network drive (on the Windows pc) that points at the Vero
When I try to map a network drive using the IP of my Vero I get an error message in Windows saying the network name cannot be found. I don’t remember ever doing this before, I think that earlier I found my Vero in windows explorer as soon as I had installed Samba on the Vero.
When mapping the drive use something like \\192.168.1.100\OSMC
Not working. So I guess this means my Samba isn’t working on my Vero?
Sorry, there should have been two slashes at the start of that path.
Is the service started? This should all ‘just work’ out of the box
Now it tries to connect, but still can’t.
That’s what I would like to know as well.
That’s what I thought too.
sudo systemctl status samba
osmc@osmc:~$ sudo systemctl status samba
Unit samba.service could not be found.
osmc@osmc:~$
So I guess it’s not enough to just install the samba-common package…
And btw, thanks for all your patience and help!
sudo apt install samba
Interesting! Now 14 new packages were installed. Rebooted and ran sudo systemctl status samba
osmc@osmc:~$ sudo systemctl status samba
- samba.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
Then
osmc@osmc:~$ sudo systemctl unmask samba
osmc@osmc:~$ sudo systemctl start samba
Failed to start samba.service: Unit samba.service is masked.
osmc@osmc:~$
Now I’m stuck again
I tried to install the FTP in Kodi Appstore, but got same result as when trying to install Samba: “Not all packages were installed” or something similar to that. Can I install SFTP on the command line? What is the package called?
SFTP is already installed, it is part of SSH
Try sudo systemctl start smbd
and sudo systemctl status smbd
Yes!
osmc@osmc:~$ sudo systemctl start smbd
osmc@osmc:~$ sudo systemctl status smbd
- smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-12-01 12:11:30 CET; 2h 13min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 555 (smbd)
Status: “smbd: ready to serve connections…”
CGroup: /system.slice/smbd.service
|-555 /usr/sbin/smbd
|-556 /usr/sbin/smbd
|-557 /usr/sbin/smbd
`-559 /usr/sbin/smbd
Dec 01 12:11:28 osmc systemd[1]: Starting Samba SMB Daemon…
Dec 01 12:11:30 osmc systemd[1]: smbd.service: Supervising process 555 which is not our child. We’ll most likely not notice when it exits.
Dec 01 12:11:30 osmc systemd[1]: Started Samba SMB Daemon.
I then could find OSMC in windows explorer, but it was empty, not sharing anything. So I edited /etc/samba/smb.conf using vi and added the following section to it:
[Media]
path = /media
guest ok = yes
browseable = yes
create mask = 0600
directory mask = 0700
read only = no
Restarted the smbd service and then my media drives are showing up in windows explorer. All works! I guess what was needed first was to install the smbd package.
Thank you again!
Now I’m trying to make accounts work, so I can switch off the guests. Didn’t work to log in with osmc/osmc account which I expected would. Will also try set it up to only accept connections from my LAN.
Need to configure users with smbpasswd
“Failed to find entry for user root.”
osmc@osmc:/etc/samba$ sudo smbpasswd osmc
New SMB password:
Retype new SMB password:
Failed to find entry for user osmc.
Read the manual
https://www.samba.org/samba/docs/current/man-html/smbpasswd.8.html
smbpasswd -a osmc
Thanks, works like a charm now