Windows 7 keeps saying wrong credentials when accessing Samba on OpenWRT

It’s a bit a common issue discussed on the internet: Windows 7 not be able to connect to a Samba server properly.

For my Raspberry Pi’s (Raspbian) I have a working solutions, but because UCI is an extra layer on top of Samba, I can’t find a working solution for Samba on OpenWRT.

On my GL-AR150 I created a directory /data with mask 1777 which I want to share through Samba to my Windows 7 machine. When I access the “data” share Windows 7 asks me for my credentials. Currently I have only configured the root, but everytime I enter my credentials Windows 7 keeps telling me I entered wrong credentials.

When accessing the default share “sda1” Windows 7 tells me it can’t find the network path.

When I do a Google search in this subject some people say Microsoft changed the security and does not accept old third-party SMB with unencrypted passwords. A register-hack or policy change could solve the issue. I don’t want to change the register manually and I don’t have the policy editor on my Windows 7 appearantly. Although, the Samba share on the Raspberry Pi does already work without those modifications to Windows 7.

Does anyone has any idea how to solve the issue?
In the meanwhile I’ll transfer my files with WinSCP. :slight_smile:

UCI Samba configuration:

root@GL-iNet:/tmp/log# uci show samba
samba.@samba[0]=samba
samba.@samba[0].description='GL-iNet'
samba.@samba[0].homes='1'
samba.@samba[0].name='GL-iNet'
samba.@samba[0].workgroup='WERKGROEP'
samba.@sambashare[0]=sambashare
samba.@sambashare[0].name='data'
samba.@sambashare[0].path='/data'
samba.@sambashare[0].read_only='no'
samba.@sambashare[0].guest_ok='no'
samba.@sambashare[0].create_mask='0775'
samba.@sambashare[0].dir_mask='0775'
samba.@sambashare[0].users='root'
samba.@sambashare[1]=sambashare
samba.@sambashare[1].name='sda1'
samba.@sambashare[1].path='/mnt/sda1'
samba.@sambashare[1].read_only='yes'
samba.@sambashare[1].guest_ok='yes'

I didn’t have an issues on my windows 7. I don’t know why.

But from your settings you have “users=‘root’”, I assume this may be a problem.

Can you post your /etc/samba/samba.template.default?

There should be a setting like: “invalid user = root”, you need to remove this.

The contents of this file is not override by uci.