sudo smbpasswd -a <username>
IF you want to map a samba user to a different local user: edit the file /etc/samba/smbusers
<localusername> = “<samba username>”