Attach SMB (samba) drive to windows machine
Linux side:
after adduser to add the user mySmbUser, run
sudo smbpasswd -a mySmbUser
sometimes you may need to use the file username map = /etc/samba/smbusers
Check you have at least shared the home directories in smb.conf:
[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
Restart smbd to force it to see the new users:
sudo service smbd restart
When mapping a drive, select the "connect using different credentials" option on windows. This is the key point. And then provide the IP address of the server.