Permission denied when mounting a windows 10 network share into a debian 10.6

I have a Windows 10 Professional on /

I have a debian 10.6 on /

Inside windows 10

I shared a folder called ‘progetti’

enter image description here

enter image description here

We are on a what Windows 10 call a “private” network.

I enambled network discovery and file sharing (sorry, It’s in italian)

enter image description here

On Debian

I created /mnt/progetti, then I added this to /etc/fstab.

It’s all on one line, I brooken rows only here

/mnt/progetti cifs 
    vers=2.0,credentials=/home/mirko/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

My credential file is /home/mirko/.smbcredentials and has 600 as permission.

I followed this article:,Mount%20CIFS%20Permission%20Denied%20Error,smbcredentials%20file.

In the credential file I have


Please note:

  1. mirko is a windows 10 local account, it’s the only on this machine and it’s an admin
  2. password is removed here but is right, and is the one I use to login into windows 10 each day
  3. domain is the default, and it’s identical to what showed when looking at pc properties.

The problem

I got a permissione denied when mounting this shared folder

$ sudo mount -a -v
(sudo) password di mirko:
/                        : ignored
/boot/efi                : already mounted
none                     : ignored
/media/cdrom0            : ignored
mount.cifs kernel mount options: ip=,unc=\,vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,user=mirko,domain=WORKGROUP,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The question

What should I do to diagnose the problem and/or to fix it?