I have edited this file sudo nano /etc/samba/smb.conf

and added the below configuration

comment=Raspberry Pi Share
only guests=no
create mask=0777
directory mask=0777

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

enter image description here

  • 1
    It looks like you are trying to use your PC as the "domain" for logging in, you may have to click the "use another account" and just type in "pi" and your password, or (since it looks like your WINS name for the Pi is RASPBERRYPI) RASPBERRYPI\pi and your user name.
    – Ron Beyer
    Aug 30, 2016 at 17:18
  • I have tried that already Aug 30, 2016 at 17:32
  • You could use 'FileZilla' instead it can transfer files through ssh
    – DS3a
    Sep 6, 2016 at 15:01

3 Answers 3


double check the /media location to make sure "pi" is the owner or has permissions to access the share. you can check the log file /var/log/samba/log.(whatever log, probably VIKAS-PC) from the screen shot. Does the share work when puplic=yes?


Please run testparm -s and check the output for correctness, especially the valid users line. You don't seem to specify any users for your share in smb.conf. A common mistake is forgetting to configure samba users which is done with

smbpasswd -a user

Add below in /etc/samba/smb.conf.

   comment = Home Directories
   browseable = no

Then run:

sudo service smbd restart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.