Unable to access Samba password protected share folder from Windows 10

Hi All, I’ve setup samba shares both password protected and guest folders. Guest access folder works fine from Windows 10 but i’m not able to access the password protected folders. I can see the folders and sometimes it will ask for username and password.

Here is my smb.conf

max log size = 1000
read raw = no
log file = /var/log/samba/log.%m
security = user
os level = 20
unix password sync = yes
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
panic action = /usr/share/samba/panic-action %d
obey pam restrictions = yes
pam password change = yes
usershare allow guests = yes
syslog = 0
passwd chat = Enter\snew\s\spassword:* %n\n Retype\snew\s\spassword:* %n\n *password\supdated\ssuccessfully$
dns proxy = no
server string = ubuntu
write raw = no
workgroup = WORKGROUP
map to guest = bad user
passdb backend = tdbsam
server role = standalone server

writeable = yes
public = yes
path = /mnt/Downloads

path = /mnt/Share/Secured
directory mode = 777
force create mode = 777
valid users = david,@smbgrp,@sambashare
create mode = 777
writeable = yes
force directory mode = 777


    path = /mnt/Shares/tiny
    valid users = @smbgrp
    browsable = yes
    writable = yes
    read only = no

i setup both secured and shares folder to test both both fail on windows 10. I try to access from ipad and it’s good. Am i missing something on the Windows 10 side? i’ve already turned on SMB v1 to test but it’s the same.

I’ve found out that windows 10 will use your current login username to try login to Samba.
Work around,

*navigate to Samba by IP address and map drive with a different credential
or *DNS the Server to a different name

  • if you already have mapped or have another guest drive, this is taken as the user authenticating.

I’ve moved this to the https://community.ubuntu.com/c/support-help-requests category because this site isn’t designed to take tech support questions. Sorry. I’d recommend using one of the official support channels listed on the https://community.ubuntu.com/t/finding-help/712 page