Solution 1:

Open a terminal and try this:

sudo smbpasswd -a < username>

Here, < username> is your username. Now, you will be prompted to set and retype new password.

Then, restart the smb service:

sudo service smbd restart

Now, try to open the shared location the usual way. Type the username and the new password you have just set.

You should be able to log in now.