Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] Samba stopped working

  1. #1
    Join Date
    Nov 2005
    Location
    Westland, MI
    Beans
    59
    Distro
    Ubuntu 8.10 Intrepid Ibex

    [SOLVED] Samba stopped working

    So, I turned my server off this evening to kind of clean up some of the cables under my desk. Then I wired everything back up the same way I had it and suddenly I can't connect to my samba share from my Windows desktop. I'm not sure what's going on. All I did was turn off the server, unplug it for about an hour, and turn it back on. Has this happened to anyone else?

  2. #2
    Join Date
    Nov 2005
    Location
    Westland, MI
    Beans
    59
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Samba stopped working

    If it will help, here's my config file. Although nothing has changed on it from when it was working fine before I shut it down to now...

    Code:
    [global]
       bind interfaces only = yes
       deadtime = 15
       default case = lower
       disable netbios = yes
       dns proxy = no
       domain master = yes
       encrypt passwords = true
       guest ok = yes
       guest only = yes
       hosts allow = 192.168.10.0/255.255.255.0 127.0.0.1
       hosts deny = all
       interfaces = em1
       invalid users = nobody root
       load printers = no
       max connections = 10
       netbios name = ironhide
       preferred master = yes
       preserve case = no
       printable = no
       security = share
       server string = Samba Share
       socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
       strict sync = no
       sync always = no
       syslog = 1
       syslog only = yes
       workgroup = WORKGROUP
    
    [share1]
            create mask = 0400
            directory mask = 0700
            path = /home/fredbear/samba
            writeable = yes

  3. #3
    Join Date
    Jan 2007
    Beans
    5,549

    Re: Samba stopped working

    is the windows pc able to ping the ubuntu?

  4. #4
    Join Date
    Nov 2005
    Location
    Westland, MI
    Beans
    59
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Samba stopped working

    Quote Originally Posted by superprash2003 View Post
    is the windows pc able to ping the ubuntu?
    Yes, I'm also able to SSH into the machine via putty and view webpages from the apache server running on it.

  5. #5
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba stopped working

    please post the output of:
    Code:
    sudo ifconfig

  6. #6
    Join Date
    Nov 2005
    Location
    Westland, MI
    Beans
    59
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Samba stopped working

    Quote Originally Posted by dmizer View Post
    please post the output of:
    Code:
    sudo ifconfig
    Here it is:

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:04:23:06:e8:99
              inet addr:192.168.10.10  Bcast:192.168.10.255  Mask:255.255.255.0
              inet6 addr: fe80::204:23ff:fe06:e899/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:227011 errors:0 dropped:0 overruns:0 frame:0
              TX packets:132033 errors:0 dropped:0 overruns:0 carrier:0
              collisions:265 txqueuelen:1000
              RX bytes:25002560 (23.8 MB)  TX bytes:19500674 (18.5 MB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:4462 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4462 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:392112 (382.9 KB)  TX bytes:392112 (382.9 KB)
    It's just totally bizarre that it worked until I shut down the machine and nothing (that I'm aware of) changed. I guess something had to have changed...

  7. #7
    Join Date
    Nov 2005
    Location
    €ngland
    Beans
    27
    Distro
    Ubuntu

    Re: Samba stopped working

    I'm wondering if samba is setup to automatically start. Perhaps trying the following will help:
    Code:
    sudo /etc/init.d/samba restart

  8. #8
    Join Date
    Jan 2007
    Beans
    5,549

    Re: Samba stopped working

    reboot both the ubuntu and the windows machine and then try

  9. #9
    Join Date
    Nov 2005
    Location
    Westland, MI
    Beans
    59
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Samba stopped working

    Ok, tried rebooting both the windows and linux servers and gave Samba a restart command. Neither worked. I let Vista try to diagnose the problem and it said that "ip address" is not set up to establish a connection on port "File and printer sharing (SMB)" with this computer. Could it be a closed port?

  10. #10
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba stopped working

    okay ... i don't know why it was working before but:

    • your ifconfig indicates that you're getting internet on eth0 with a local ip of 192.168.10.10.
    • your smb.conf has these two lines:

    Code:
    bind interfaces only = yes
    interfaces = em1
    what this means is that smb.conf is set to only accept incomming samba connections from the em1 interface. but you do not have an ethernet connection on em1, your ethernet connection is eth0.

    you could do two things to fix this.
    1) simply remove those options.
    2) change "interfaces = em1" to "interfaces = eth0"

    then restart samba:
    Code:
    sudo /etc/init.d/samba restart
    Last edited by dmizer; July 23rd, 2008 at 04:58 AM.

Page 1 of 2 12 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
  •