The file or folder smb://locallinux/shared does not exist.

Posted on 2006-05-28
Last Modified: 2008-02-26
I am trying to share a folder on FC4 with an winXP machine. I get a  "network path not found" when I try to connect to the folder (I see the Linux machine in Network Neighborhood.)

When I am in konquerer I can see the samba shares icon under network folders and I can connect to any of the windows machines just fine, but when I try to connect to the linux machine I get the "The file or folder smb://locallinux/shared does not exist." error.

Any help on troubleshooting would be appreciated.

Question by:cubbyboy57
    LVL 87

    Assisted Solution

    Try this from a terminal as root:

    /etc/init.d/iptables stop

    Then try again. If that helps and you want your firewall active on the linux box, you will have to configure firewall to allow the following ports:

    tcp 139, 445
    udp 137, 138


    Author Comment

    I didn't put that I had turned off both the windows and linux firewalls.  Why is linux saying the path is not valid? - Is it a lack of permission?
    LVL 51

    Expert Comment

    did you configure locallinux as host in /etc/hosts or your NS? check with
      nslookup locallinux

    did you setup y folder shared in you Samba configuration? check with
      smbclient -L locallinux

    Author Comment

    How do I configure the host? I put in locallinux in the DNS tab of the network configuration.

    Here is the result of the nslookup
    [root@locallinux etc]# nslookup locallinux

    ** server can't find locallinux: NXDOMAIN

    [root@locallinux etc]#
    LVL 51

    Expert Comment

    assuming that you also have not configured locallinux in /etc/hosts (and most likely have not configured /etc/resolv.conf), the question is: why do you use a hostname (locallinux in your example) which is unknow to your system?

    Author Comment

    When I set up the box the host was default localhost.localdomain, but I later found out that this was reserved by Windows and thought by going to the network configuration and changing the host name to locallinux that it would change it where needed. I guess I was wrong.
    LVL 51

    Accepted Solution

    localhost is usually maped to, which may never cause conflicts
    hence localhost is never a remote host name, for obvious reason

    In your case, you configured your Linux's hostname to be locallinux, this locallinux must be mapped to the IP (for example, while localhost is always on every machine (even your windows).

    Don't know what "going to the network configuration and changing the host name" really does on your system, but after doing that you should have locallinux mapped to its IP. Check with:
      ifconfig -a
      ping locallinux
    If both report the same IP, you should be able to use smb://locallinux/ from this mashine.
    To connect from another mashine, you either need to setup DNS, or better add locallinux to the WINS server if you have one. In smb.conf you can also define the netbios name to be locallinux.
    LVL 1

    Assisted Solution

    Also, in addition to what hoffman says, you will have to define the directory 'shared' to be actually shared in the smb.conf file. In order to do this in Fedora, you can use the Samba GUI utility. To invoke this utility, use the 'system-config-samba' from root.

    Let us know how it goes,
    Good luck

    Author Comment

    I haven't time to play with linux box until this holiday weekend.  I ended up reinstalling the OS and setting the host name from the beginning.  I finally got all three parts (host name, share, and firewall config) working and now have a file server for my home!

    Thanks for taking the time to explain what needed to be...

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now