Results 1 to 7 of 7

Thread: Help with Samba

  1. #1
    Join Date
    Mar 2012
    Beans
    3

    Help with Samba

    Running Lubuntu 11.10 here, wanting to share files with Windows 7 machines on a home WLAN. I followed exactly the setup instructions for Samba here:

    http://ubuntuforums.org/showthread.php?t=1623346

    But my Lubuntu machine still doesn't show up under "Network" on the Windows machines. There must be some step(s) missing.

    Also, on Lubuntu I can access the Windows machines only by typing their IP address. Using the computer name doesn't work. Also, typing "smb://" shows me the "WORKGROUP" folder, but when I try to open that I get the messages, "Failed to retrieve share list from server" and "The specified location is not mounted."

    What steps should I take?

  2. #2
    Join Date
    Jun 2008
    Location
    Chicago, IL
    Beans
    301
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Re: Help with Samba

    What has worked for me is to add 'force user = yourmane' in the smb.conf file. open a terminal, sudo gedit /etc/samba/smb.conf then add the force user line just below the workgroup one. The log out and back in.
    Attached Images Attached Images
    Mint 14 | 64bit | DT ACER VN281G | Intel® Atom™ CPU D425 @ 1.80GHz × 2 | Registered Linux User#458200

  3. #3
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,899

    Re: Help with Samba

    Howdy,

    IMHO, Samba is best avoided. Of all the ways to share files with a Windows machine it is the most difficult and annoying to install.

    FTP is the simplest, OpenSSH is the securest, NFS is the easiest and Samba is the difficultest...

    So, if your needs are simple, install vsftpd on Linux and FileZilla on Windows, or install FileZilla Server on Windows and use Nautilus to connect to it on Linux.

    If you are serious about using Samba, then you need to read the documentation. Buy the book or go to the project web site and start reading.

  4. #4
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Help with Samba

    Michael

  5. #5
    Join Date
    Dec 2009
    Beans
    5,339

    Re: Help with Samba

    But my Lubuntu machine still doesn't show up under "Network" on the Windows machines.
    Preliminary steps:
    [1] Run the following command in lubuntu and count the number of characters:
    Code:
    hostname
    If it's 16 characters or more in length then your machine is invisible to the rest of the network.

    [2] Change the order of how host names are resolved to ip addresses:

    To do both:
    Edit smb.conf as root ( I'm using gedit here because I don't know the default editor in Lubuntu ):
    Code:
    gksu gedit /etc/samba/smb.conf
    Then add the following line to the [global] section of smb.conf - right under the workgroup line to fix the hostname problem if there is one:
    Code:
    netbios name = something
    something must be 15 characters or less in length

    Still in gedit add another line under that one:
    Code:
    name resolve order = bcast host lmhosts wins
    Save smb.conf and then restart samba services:
    Code:
    sudo service smbd restart
    sudo service nmbd restart
    Note: Every time you restart samba services the network has a fit so wait a few minutes and see how far this advice got you.

  6. #6
    Join Date
    May 2008
    Beans
    88

    Re: Help with Samba

    Samba is easily by far the best and easiest way to share files with Windows. It integrates seamlessly and requires zero effort on the part of the Windows users accessing the Samba server by virtue of that seamless integration. It just takes a correct configuration which BTW, is not too difficult either.

    A few simple steps like Morbius suggests and you will be fine.

  7. #7
    Join Date
    Mar 2012
    Beans
    3

    Smile Re: Help with Samba

    Thank you to Morbius1 for fixing my problem, and to NadirPoint for persuading me to go with Morbius1's solution. Audiomick also provided an interesting link that I'm reading.

    Great first experience with the Ubuntu community. Thanks, guys!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •