Samba issue: OSMC and share folder not seen from Windows 10

Hi dudes…

I certainly missed something last months…
I had Samba installed and a folder created on OSMC.

Now OSMC and the folder cannot be seen from my Windows 10 computer.

What log should I provide to help me to get rid of this?

Please define “seen”. Because Samba share browsing (a function of SMB1) has been disabled in Win10 recently

Log code : anotutedev

SMB conf code : rofikiroko

I assume you refer to this path?

Apr 11 10:28:11 osmc smbd[4200]: [2018/04/11 10:28:11.737874,  0] ../source3/smbd/service.c:755(make_connection_snum)
Apr 11 10:28:11 osmc smbd[4200]:   canonicalize_connect_path failed for service PiShare, path /home/pi/share

Whats the ouput of ls -lah /home/pi?
Also please let me know the answer to the “see” question

The output failed: No such file or directory

This is what I got in my smb conf file:

include = /etc/samba/smb-shares.conf
[PiShare]
comment=Raspberry Pi Share
path=/home/pishare
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=yes

and my RPI on which OSMC is installed is not seen at all in network Explorer.

Have you restarted samba after you changed the path in smb.conf?
Because in the file you shared earlier the folder was path=/home/pi/share
So what is the output of ls -lah /home?

As I wrote Windows 10 has disabled SMB1 protocol recently which will block network browsing you would need to access the OSMC directly via IP Address or DNS Name

gives

total 12K
drwxr-xr-x 3 root root 4.0K Jan 1 1970 .
drwxr-xr-x 23 root root 4.0K Jan 10 13:57 …
drwxr-xr-x 13 osmc osmc 4.0K Nov 18 2016 osmc

yes. I changed it.

Oh oh!
And how?

So you don’t have a /home/pi or /home/pishare directory, means you can not share it!

e.g. \\192.168.1.15\osmc\

The Path /home/pishare doesn’t appear to exist. Whats the output off:

ls ls -lah /home/osmc

ls: cannot access ‘ls’: No such file or directory
/home/osmc:
total 72K
drwxr-xr-x 13 osmc osmc 4.0K Nov 18 2016 .
drwxr-xr-x 3 root root 4.0K Jan 1 1970 …
-rw------- 1 osmc osmc 7.4K Apr 11 09:59 .bash_history
-rw-r–r-- 1 osmc osmc 220 Nov 13 2014 .bash_logout
-rw-r–r-- 1 osmc osmc 3.5K Nov 13 2014 .bashrc
drwx------ 3 osmc osmc 4.0K Jul 4 2016 .config
drwx------ 2 osmc osmc 4.0K Nov 18 2016 .gnupg
drwxr-xr-x 8 osmc osmc 4.0K Feb 6 2017 .kodi
-rw-r–r-- 1 osmc osmc 675 Nov 13 2014 .profile
drwxr-xr-x 2 osmc osmc 4.0K Jun 27 2016 .smb
drwxr-xr-x 2 osmc osmc 4.0K Jun 21 2016 Movies
drwxr-xr-x 2 osmc osmc 4.0K Jun 21 2016 Music
drwxr-xr-x 2 osmc osmc 4.0K Jun 21 2016 Pictures
drwxr-xr-x 2 osmc osmc 4.0K Jul 13 2016 Restore
drwx------ 2 osmc osmc 4.0K Jul 4 2016 Sync
drwxr-xr-x 2 osmc osmc 4.0K Jun 21 2016 TV Shows
drwxrwxrwx 2 osmc osmc 4.0K Apr 2 15:37 pishare

pishare is here.
So (now) the path /home/pishare seems to be good.

Okey.
I get access to my OMSC.
I can see the pishare directory, open it… but I can’t make a shortcut on Windows desktop (!) nor using the shared folder shortcut in the network Explorer panel. :frowning:

Hi,

that should have been:

ls -lah /home/osmc

Anyway it looks to me that path should be:

path=/home/osmc/pishare

Then restart the samba server.

Thanks Tom.

You actually can remove your pishare entry (as it is wrong). This path is /home/osmc/pishare which is automatically shared by the default smb.conf entry.

Use map network drive

No need to create that as it is auto shared as part of /home/osmc

1 Like

Kudos to you.

Work in progress… should be fine in a couple of hour.
I’ll be be back !

EDIT : now the whole enchilada is working fine.
Thanks again dudes.

SOrry to bump an old thread but I can see my home dir but not my shares

``Samba 4.9.5-Debian

Share name Type Used as Comment


osmc Disk OSMC Home Directory
The command completed successfully.``

Shouldn’t they be auto shared?

“my shares” are you using autoshares from OSMC?
Upload logs via grab-logs -A

Thanks for the speedy response.

I think so. Installed samba server, added share in windows but only osmc home dir shows.
It’s just sitting there, when I try to grab logs

Try to reboot twice to make the logs smaller. If that doesn’t work I will give you individual commands.

It did do it in the end but produced this: https://paste.osmc.tv/
will reboot now

https://paste.osmc.tv/upanoxaqax