Score:0

Can't access to a Windows Samba share from debian - NT_STATUS_ACCESS_DENIED listing \*

ru flag

On my Windows 10 machine I have several samba share folders with a user assigned to my debian machine.

On my debian machine, as I had already made cifs mount to a share folder (www) of the same windows machine that works, I first simply copied the mount point with the folder name.

//192.168.1.2/musicprojects /media/smbDesk/Projects_-_Music cifs nofail,credentials=/etc/cifs-creds/cred,ro,iocharset=utf8,file_mode=0555,dir_mode=0555,vers=2.1 0 0

But it says mount error(13): Permission denied.

I then tried smbclient -L 192.168.1.2 -U user and there I get all the shares correctly.

Sharename Type Comment
        --------- ---- -------
        ...
        musicprojects Disk
        ...
        www Disk

With smbclient I can connect to server and shared folder: smbclient //192.168.1.2/musicprojects -U user

but when I do:

smb:\>ls

here is the error: NT_STATUS_ACCESS_DENIED listing \*

On the other share that I had already done (same machines, same user, same config), I have no problem with the same command. I think the problem is on the windows smb server. The only difference I can see between the two shares is that it is another hard disk on windows.

I looked in Windows 10 the sharing configuration:

  • user is ok in sharing with full control
  • I even put everyone access in read
  • in the security tab, user has read-execute, display, read, write permissions.

I have already put LocalAccountTokenFilterPolicy 1 in windows registry. In the computer management console, the share is already configured to allow enough connections.

Does somebody have an idea ? How can I debug on the windows side to know exactly what is refused by the smb server ?

Thank you

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.