I have edited this file sudo nano /etc/samba/smb.conf
and added the below configuration
[piShare]
comment=Raspberry Pi Share
path=/media
browseable=Yes
writeable=Yes
only guests=no
create mask=0777
directory mask=0777
public=no
based on public=no
it should ask me password, which it does but even after entering username and password I keep getting the below prompt again and again
RASPBERRYPI\pi
and your user name.