I have a samba share on my LAN that requires a username and password to obtain write access (otherwise it defaults to read-only).

I can't figure out where in the Unity desktop I can connect to the share and be prompted for my login credentials. I can mount the drive, of course, but then I'm browsing as a guest (read-only).

What gives?

  • Unity doesn't really have anything to do with file sharng. Try File->Connect to Server in the Nautilus file browser. Oct 20 '12 at 15:37

In top menu of the file browser click Go>Location and enter smb://user@host/sharename. You will then be prompted to enter a password.

  • 2
    what is 'sharename'
    – Adam Johns
    May 16 '15 at 18:18
  • @AdamJohns The share name is whatever the network share is named on that Samba share server...
    – Thomas Ward
    Jun 19 '15 at 18:09
  • 1
    is there a command line equivalent?
    – Nuzzolilo
    Jan 3 '16 at 21:49
  • Nuzzolilo, search for smbclient Jul 13 '17 at 6:46
  • what if we use email address as username? Jun 25 '19 at 0:48

If you have a Guest account without a password:


If you have a user account with a password:


If you have a user account but only want to be prompted for the password:


In ubuntu 15.04, you can open the file server, and use the connect to the server option on the bottom left

  • Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.) Sep 12 '15 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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