Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Samba problem

  1. #1
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Thumbs down Samba problem

    I have 2 computers on my local network, percy has the internet connection and last week I installed 10.04 on it. charlie has an old version of centos.

    percy and charlie have been talking to each other for many years with different flavours of linux.

    I set up samba on percy and it worked as always, when "network" is selected
    percy and charlie come up and both computers can be browsed.

    I then followed the instructions for masquerading, and charlie could then use the internet.

    But, that killed samba, figured that the firewall was to blame, sure enough turn firewall off and samba was back to normal.
    So after some research I added this to /etc/rc.local
    Code:
    iptables -A INPUT -p ALL -i eth1 -s 10.0.1.0/30 -j ACCEPT
    iptables -A INPUT -p ALL -i eth1 -d 10.0.1.255 -j ACCEPT
    Now I've got half samba back, percy can see charlie but charlie can't see percy, and strangely when selecting "network" from percy only charlie appears.
    But from percy if I
    Code:
    michael@Percy:~$ nautilus smb://10.0.1.1
    michael@Percy:~$ nautilus smb://10.0.1.2
    I get both sets of shares, however if I do the same from charlie I get a message saying "sorry couldn't display 10.0.1.1"

    I had a look at smb.conf and at the bottom there was these lines.

    Code:
    [michael]
    	comment = mike's home
    	path = /home/michael
    
    ;	browseable = yes
    	guest ok = yes
    	available = no
    	writeable = yes
    So I changed the "no" to "yes"
    but that hasn't made any difference.

    Any ideas, anybody?

  2. #2
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Re: Samba problem

    I've been thinking about this, and I don't think this has anything to do with the firewall.
    If I turn the firewall off, the problem is still there, "percy" does not appear on either computer.

    I had 2 goes at installing samba, the first time through synaptic package manager, didn't install the gui, I had a go at set up with smb.conf but when I went to System > Preferences > Personal File Sharing, I got an error message saying "This feature cannot be enabled because the required packages are not installed"

    So I did an "apt get samba" from the command line, that installed another 2 packages, 1 of them the gui.
    That may have been when the problem started.

    So should this computer's name appear in the gui?

    There's a line labeled "description" under "workgroup" that has

    %h server (Samba, Ubuntu)

    in it. Is this where "percy" should be?

  3. #3
    Join Date
    May 2008
    Location
    Berks, UK
    Beans
    1,387

    Re: Samba problem

    I'd be looking at the routes set on each machine, but especially percy.
    I suspect that all traffic is being routed to the internet (I use route print in a terminal window, being 'old school').
    Also a simple ping test from charlie to percy (using IP address?) might be interesting.
    Derek

  4. #4
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Re: Samba problem

    Quote Originally Posted by dandnsmith View Post
    I'd be looking at the routes set on each machine, but especially percy.
    I suspect that all traffic is being routed to the internet (I use route print in a terminal window, being 'old school').
    Also a simple ping test from charlie to percy (using IP address?) might be interesting.
    Thanks Derek,

    I tried "route print" but that didn't work, came up with a list of options I didn't understand.

    And ping works both ways, charlie can see percy and percy can see charlie.

    Samba also works fine from percy, in that it has full access to charlie's shares. But unlike before, "percy" doesn't show up on either network.

  5. #5
    Join Date
    May 2008
    Location
    Berks, UK
    Beans
    1,387

    Re: Samba problem

    Sorry, gave the wrong version there - should just be route (the route print is the Windows version).

    Next, after the ping, I'd look in the log files for smbd and nmbd, having first established that the processes are running, especially on percy (where the trouble is centred).
    Derek

  6. #6
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Thumbs down Re: Samba problem

    Thanks Derek,
    OK that did it.

    Code:
    michael@Percy:~$ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    nexthop.wa.iine *               255.255.255.255 UH    0      0        0 eth0
    10.0.1.0        *               255.255.255.252 U     1      0        0 eth1
    124.150.52.0    *               255.255.255.0   U     1      0        0 eth0
    link-local      *               255.255.0.0     U     1000   0        0 eth1
    default         nexthop.wa.iine 0.0.0.0         UG    0      0        0 eth0
    Doesn't mean much to me I'm afraid. except the 2nd line, that's my lan.

    Not sure how to check if smb and nmb are running.
    In fedora, you can check every service from a gui and turn it on or off.
    But I can't find that in ubuntu. The closest is "start up applications", but that doesn't mention either of those.

    But if they weren't running, would I be able to browse charlie's shares from percy?

  7. #7
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Re: Samba problem

    Just checked with "system monitor", doesn't show either of them running.
    I tried double clicking on "windows network" and with charlie turned off, I just get,
    "unable to mount location. Failed to retrieve share list from server"

    And still system monitor shows no activity from smb or nmb

    Also if I try to use "system" > preferences > personal file sharing, it tells me I don't have the right software installed.
    Could this be another indication samba isn't running?

    How do I make sure it is?

  8. #8
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Re: Samba problem

    OK, found the command on another thread.

    Code:
    michael@Percy:~$ sudo service smbd start
    start: Job is already running: smbd
    michael@Percy:~$ sudo service nmbd start
    start: Job is already running: nmbd
    So looks like they are both running.

  9. #9
    Join Date
    May 2008
    Location
    Berks, UK
    Beans
    1,387

    Re: Samba problem

    You may get some mileage out of
    smbclient -L machinename putting in percy or charlie
    also
    nmblookup (check man pages?)

    samba.org/docs contains links to sources of testing docs.

    The route printout looked OK to me - not really surprised after pings reported working both ways.

    In /var/log you should find lots of logs - including those from smbd and nmbd. Might be something there.
    Derek

  10. #10
    Join Date
    Feb 2007
    Location
    Mandurah Western Australi
    Beans
    208
    Distro
    Ubuntu

    Re: Samba problem

    Thanks Derek,
    Had a quick look thru the logs, this looks significant, from the log.nmbd

    [2011/01/09 22:53:54, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_quer y_fail)
    find_domain_master_name_query_fail:
    Unable to find the Domain Master Browser name PANDC<1b> for the workgroup PANDC.
    Unable to sync browse lists in this workgroup.
    [2011/01/09 22:53:54, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_quer y_fail)
    find_domain_master_name_query_fail:
    Unable to find the Domain Master Browser name PANDC<1b> for the workgroup PANDC.
    Unable to sync browse lists in this workgroup.
    [2011/01/09 22:59:30, 0] nmbd/nmbd.c:71(terminate)
    Got SIGTERM: going down...
    [2011/01/10 18:42:17, 0] nmbd/nmbd.c:854(main)
    nmbd version 3.4.7 started.
    Copyright Andrew Tridgell and the Samba Team 1992-2009
    [2011/01/10 18:42:42, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
    *****

    Samba name server PERCY is now a local master browser for workgroup PANDC on subnet 10.0.1.1

    *****
    [2011/01/10 18:42:45, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_quer y_fail)
    find_domain_master_name_query_fail:
    Unable to find the Domain Master Browser name PANDC<1b> for the workgroup PANDC.
    Unable to sync browse lists in this workgroup.
    [2011/01/10 18:47:51, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
    *****

    Samba name server PERCY is now a local master browser for workgroup PANDC on subnet 124.148.192.64

    *****
    [2011/01/10 18:48:02, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_quer y_fail)
    find_domain_master_name_query_fail:
    Unable to find the Domain Master Browser name PANDC<1b> for the workgroup PANDC.
    Unable to sync browse lists in this workgroup.
    So do I need to set master browser in smb.conf?

Page 1 of 4 123 ... LastLast

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
  •