I have a Windows 10 Professional on 192.168.20.43
/ 255.255.255.0
I have a debian 10.6 on 192.168.20.32
/ 255.255.255.0
Inside windows 10
I shared a folder called ‘progetti’
We are on a what Windows 10 call a “private” network.
I enambled network discovery and file sharing (sorry, It’s in italian)
On Debian
I created /mnt/progetti
, then I added this to /etc/fstab
.
It’s all on one line, I brooken rows only here
//192.168.20.43/progetti
/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: https://www.ceos3c.com/open-source/mount-cifs-permission-denied-linux/#:~:text=error%20on%20Linux.-,Mount%20CIFS%20Permission%20Denied%20Error,smbcredentials%20file.
In the credential file I have
username=mirko
password=.......
domain=WORKGROUP
Please note:
mirko
is a windows 10 local account, it’s the only on this machine and it’s an adminpassword
is removed here but is right, and is the one I use to login into windows 10 each daydomain
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
domain=WORKGROUP
mount.cifs kernel mount options: ip=192.168.20.43,unc=\192.168.20.43progetti,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?