Hello there,
When we mount the exported Samba share, we’ll authenticate as user pi. Samba knows nothing of pi’s password under Raspbian, so we’ll need to create a password using smbpasswd. I’d recommend you use the same password in Samba that you use in Raspbian, but that’s not required. Add pi’s Samba password as follows:
$ sudo smbpasswd -a pi
New SMB password:
Retype new SMB password:
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--