9

While trying to access a Windows network it shows:

Unable to access location, Failed to retrieve share list from server, No such file or directory

How to solve this, and connect with Windows shared folders?

  • what do i enter as the hostname and username? is it the name of the computer i want to connect to? what if i do not know it and what to connect to it? – user281480 May 14 '14 at 8:42
9

assuming you have installed samba,

on the command line, you can explicity list all shares on a given host with this command

smbclient -L <hostname> -U cashew 

-U is the username option

This command might be helpful, when nautilus might not list all hosts and shares that are in fact available.

Connect to a SMB share with

smbclient //server/share -U user

Enter you user password.

You can connect directly with

smbclient //server/share -U user%password

but your password will show on the screen (less secure).

Once connected you will get a prompt that looks like this :

> smb: \>

Type "help" , without quotes, at the prompt for a list of available commands.

| improve this answer | |
  • So, I can connect to and see smb directories in the terminal, but Nautilus does not show or connect to. This answer only shows how to connect in the terminal, but does not provide how to fix the Nautilus problem. Is there any way? – Damn Vegetables Nov 24 '16 at 20:30
4

Be sure to install sambaCTRL + ALT + T

sudo apt-get install samba

Now try it again.

| improve this answer | |
0

Run terminal and enter this command-

gksudo gedit /etc/hosts

and add computer ip address and name in hosts file. Save and exit.

Sample ip and name:

192.168.120.65    pankajPcName

Thats all.It will solve your issue .

| improve this answer | |
0

Spent hours trying to sort out this issue, been in any and every post and documentation, but was determined to resolve this issue once and for all, and found the problem. Went to windows 7 and according to the firewall, the sharing settings been not well configured to accept Linux, but now it is. So my advice is to built the smb share into Ubuntu (or Linux) and if not successful, try to find the next issue inside windows.

| improve this answer | |
  • 1
    Can you give a detailed description, on how to built the smb share into Ubuntu, please?! – v2r Mar 22 '14 at 20:49

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.