Cannot List SMB Shared Folder via AutoFS

Hi. I followed the steps here https://discourse.osmc.tv/t/mounting-network-shares-with-autofs-alternative-to-fstab/74228

I cannot connect to an SMB share folder on a Windows 10 machine. I tried to connect using v2 at first then v3. Still cannot .

my /etc/auto.master

/- /etc/auto.shares --timeout 15 browse

my /etc/auto.shares

/home/osmc/Network/PAPIL**** -fstype=cifs,rw,credentials=/home/osmc/.key-5B****,iocharset=utf8,uid=osmc,gid=osmc,vers=3.0 ://192.168.100.41/PAPIM****

log is here https://paste.osmc.tv/jubupipoca

I checked SMB version and it’s true at 2, but I tried vers=2.0 and vers=3.0 and it didn’t work.

So how is that showing? What is the output of ls -lah /home/osmc/Network?
Have you run the debug mode as suggested?
Also what is smbclient -L 192.168.100.41 showing?

ls -lah /home/osmc/Network shows a folder I created inside PAPIL****

ls -lah /home/osmc/Network/PAPIL**** says No such file or directory

smbclient -L 192.168.100.41 command not found

do I

sudo apt-get install smbclient

?

Yes, please

1 Like

smbclient -L 192.168.100.41

mkdir failed on directory /var/lib/samba/private/msg.sock: Permission denied
Unable to initialize messaging context
Enter WORKGROUP\osmc's password:
session setup failed: NT_STATUS_ACCESS_DENIED

If osmc is not the user on your server you need to add -U user to the smbclient

1 Like
mkdir failed on directory /var/lib/samba/private/msg.sock: Permission denied
Unable to initialize messaging context
Enter WORKGROUP\Mar***'s password:
session setup failed: NT_STATUS_LOGON_FAILURE

So have you ensured username/password is correct and user not expired?

I checked and it’s correct. I’ll try to create another user with a simpler name. Maybe that’s the problem.

Try -m SMB3 on smbclient.

1 Like

Same. NT_STATUS_LOGON_FAILURE

Add -d 5 to increase the debug level

1 Like

You’re right. It says

SPNEGO login failed: The attempted login is invalid. This is either due to a bad username or authentication information.
session setup failed: NT_STATUS_LOGON_FAILURE

I will create a simpler username and try again :slight_smile:

@fzinken you’re correct. I created a new user with the new and simpler username and it works! Thank you!