-1

I have a Debian Stretch server setup for a few years now, with samba install with shares configured the shares are accessible from both windows 7 and 10 computers when using the network paths directly.

But today I thought I would add one of the shares as a drive letter under windows 7 and 10, neither of which worked both give the same errors as access denied, credentials are asked for, this I expected as credentials are requested when accessing the shares via the network path such as \servername\sharename, when the credentials are provided here however access is granted, but via the network drive they are not.

Is this a Windows issue or a Linux issue, I am unsure how to go about debugging this, when one method works, but the other does not.

The contents of smb.conf is as follows: -

[global]
        interfaces = 127.0.0.0/8 enp30s0
        server string = %h server (Samba, Debian)
        log file = /var/log/samba/%m.log
        max log size = 50
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        usershare allow guests = Yes
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passdb backend = smbpasswd
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        security = USER
        server role = standalone server
        unix password sync = Yes
        dns proxy = No
        idmap config * : backend = tdb
        hosts allow = 192.168.0. 192.168.1. 192.168.2. 127.0.0.1

[homes]
        comment = Home Directories
        browseable = No
        create mask = 0775
        directory mask = 0775
        read only = No

[media]
        comment = "/media"
        path = /media
        create mask = 0644
        read only = No

[mnt]
        comment = "/mnt"
        path = /mnt
        create mask = 0644
        read only = No
  • 1
    I stopped reading after you said it works with MS-Windoms 7 and 10, but not with MS-windows 7 and 10. Please proof-read, and edit, so that the question makes sense. – ctrl-alt-delor Jan 7 at 13:49
  • 1
    @ctrl-alt-delor Please read it again and not skim for the words you are interested in, it works in windows 7 and 10 via network paths, but access denied when trying to use the same network paths and same credentials in the map network drive wizard. – AeroMaxx Jan 7 at 13:54
  • Just put the clarification in the question – ctrl-alt-delor Jan 7 at 14:34
  • @ctrl-alt-delor it is in the question, first paragraph for "it works in windows 7 and 10 via network paths" and 2nd paragraph for "but access denied when trying to use the same network paths and same credentials in the map network drive wizard". – AeroMaxx Jan 15 at 10:29
  • Sorry I thought you were telling us something new: Not just repeating yourself. If be re-reading the question, dose not help it to make sense, then how does you repeating it in a comment help. (Note My oppinion on the readability of your question may be wrong. But you don't have any answers yet, and it looks like it could be an easy question to answer, if only we know what the question is). – ctrl-alt-delor Jan 15 at 20:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.