Did you use double \
like \\192.168.178.34\osmc
?
Yes double backslash, I think this forum editor is stripping some characters like that. Noticed the same checks on other posts and intended to keep an eye on the same here haha sorry.
Oh yeah should have mentioned I’ve checked with this:
root@osmc:/home/osmc# sudo systemctl status samba
* samba.service - Samba Server
Loaded: loaded (/lib/systemd/system/samba.service; enabled; vendor preset: enabled)
Active: active (exited) since Sun 2022-04-10 01:35:34 IST; 5min ago
Process: 3482 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3482 (code=exited, status=0/SUCCESS)
Apr 10 01:35:34 osmc systemd[1]: Starting Samba Server…
Apr 10 01:35:34 osmc systemd[1]: Started Samba Server.
Is “Active (exited)” what we should expect?
And these are what I’m expecting to be able to see from Windows:
root@osmc:/home/osmc# ls -l /media
total 12
drwxrwxrwx 1 osmc osmc 4096 Mar 17 18:08 NAS4TB3
drwxrwxrwx 1 osmc osmc 4096 Mar 21 19:24 NAS4TB4
-rw-r–r-- 1 root root 232 Jul 2 2020 README
Edit: More info along the same lines
I think the above was just mounted USB drives? so I believe this is the actual shares under Samba:
osmc@osmc:~$ net usershare info --long
[NAS4TB3]
path=/media/NAS4TB3
comment=Auto-mount Volume
usershare_acl=OSMC\osmc:F,
guest_ok=n
[NAS4TB4]
path=/media/NAS4TB4
comment=Auto-mount Volume
usershare_acl=OSMC\osmc:F,
guest_ok=n
So I wonder if I need to make the auto-mounts guest_ok=n? (now how to do that? )
Though, recalling I haven’t changed anything on the device, I want to be careful not to change it now if Windows is the source of the problem…
Edit2: and the share configuration I think:
sudo nano /etc/samba/smb.conf
[global]
# If you require a fully custom smb.conf create smb-local.conf instead of editing smb.conf so your
# configuration will not be overwritten by samba upgrades. You can use smb.conf as a template by
# copying it to smb-local.conf then removing the config file line below in the new file. If you only
# need to add some additional shares see smb-shares.conf below for a simpler way to do this.
config file = /etc/samba/smb-local.conf
workgroup = WORKGROUP
security=user
follow symlinks = yes
wide links = no
unix extensions = no
lock directory = /var/cache/samba
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log level = 1
map to guest = bad user
fruit:model = Macmini
# usershare template share = automount template
# Automount template disabled to work around a samba bug causing crashes accessing external drives.
read raw = Yes
write raw = Yes
strict locking = no
min receivefile size = 16384
use sendfile = true
aio read size = 2048
aio write size = 2048
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
[osmc]
browsable = yes
read only = no
valid users = osmc
path = /home/osmc
comment = OSMC Home Directory
[automount template]
browseable = yes
-valid = no
valid users = osmc
path = %P
hide files = /$RECYCLE.BIN/System Volume Information/desktop.ini/thumbs.db/
# Add custom shares in smb-shares.conf instead of editing smb.conf so they will not be
# overwritten by samba updates. You can only add new shares to smb-shares.conf, not change
# the default shares or global options. If you need full control see smb-local.conf above.
include = /etc/samba/smb-shares.conf