To be able to browse files from Windows machine you need to add a user to the user list:

smbpasswd -a user

The linux user account has to exist. Then when you write files from the Windows machine, they will have the right owner on the linux disk.