Announcement

Collapse
No announcement yet.

How do I get Samba to start?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I get Samba to start?

    I have a fresh install of 10.04 and I have installed Samba and smbd4k, configured it, set-up a shared directory, Samba shows up under the System section in the Advanced tab of System Settings, everything seems to be in place except it won't start. My other computers don't see this computer. I can ping it from another computer and I can access the other computers from this one. When I had 9.04 on this computer, I had it working just fine. Now I can't seem to get it going.

    #2
    Re: How do I get Samba to start?

    Hi

    to check if deamons are running type
    Code:
    sudo service --status-all
    what you are looking for is line like:
    [ + ] smbd
    the + sign shows that samba is running. Anything else like [ - ] or [ ? ] would appear that service is disabled or not running.
    To start samba service type:
    Code:
    sudo service smbd start
    You can now check if your network is operational. If it is type:
    Code:
    sudo update-rc.d smbd start 80 2 3 4 5 . stop 20 0 1 6 .
    or
    Code:
    sudo update-rc.d smbd defaults
    Reboot and check if samba started correctly.
    check
    Code:
    info update-rc.d
    for more details.

    Comment


      #3
      Re: How do I get Samba to start?

      After typing "sudo service --status-al"l, it shows smbd with a ?.
      Then when I type "sudo service smbd start", it comes back with "start: Job is already running: smbd"

      Next I tried this:
      steve@steve-laptop:~$ sudo service smbd restart
      smbd start/running, process 15703

      And then this:
      steve@steve-laptop:~$ sudo update-rc.d smbd start 80 2 3 4 5 . stop 20 0 1 6 .
      update-rc.d: warning: /etc/init.d/smbd missing LSB information
      update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
      Adding system startup for /etc/init.d/smbd ...
      /etc/rc0.d/K20smbd -> ../init.d/smbd
      /etc/rc1.d/K20smbd -> ../init.d/smbd
      /etc/rc6.d/K20smbd -> ../init.d/smbd
      /etc/rc2.d/S80smbd -> ../init.d/smbd
      /etc/rc3.d/S80smbd -> ../init.d/smbd
      /etc/rc4.d/S80smbd -> ../init.d/smbd
      /etc/rc5.d/S80smbd -> ../init.d/smbd

      I'll try rebooting now to see what happens.

      Comment


        #4
        Re: How do I get Samba to start?

        After the reboot, the status still shows a ? for smbd and the computer is still not seen on my network.

        Comment


          #5
          Re: How do I get Samba to start?

          OK here's the information on my Kubuntu 10.04 system with samba working.

          Code:
          dibl@lucid:~$ sudo apt-cache policy samba
          [sudo] password for dibl: 
          samba:
           Installed: 2:3.4.7~dfsg-1ubuntu3
           Candidate: 2:3.4.7~dfsg-1ubuntu3
           Version table:
           *** 2:3.4.7~dfsg-1ubuntu3 0
              500 [url]http://us.archive.ubuntu.com/ubuntu/[/url] lucid/main Packages
              100 /var/lib/dpkg/status

          Installed packages:

          samba
          samba-common
          samba-common-bin
          samba-ldb-tools
          samba4
          samba4-common-bin
          smb4k
          smbclient
          smbfs

          Code:
          dibl@lucid:~$ cat /etc/samba/smb.conf
          #
          [global]
          
              workgroup = CLOVERPATCH
              interfaces = eth0
              map to guest = bad user
          
          [Data]
              path = /home/dibl
              read only = no
              guest ok = yes
              case sensitive = no
              strict locking = no
              force user = dibl
          
          [Canon_iP6220D]
          
              printing = cups
              path = /var/tmp
              printable = yes
              guest ok = yes
              guest only = yes
          
          [Documents]
              path = /home/dibl/Documents
              writeable = yes
              browseable = yes
              guest ok = yes

          Hope this helps.

          Comment


            #6
            Re: How do I get Samba to start?

            I didn't have samba4 and samba4-common-bin installed and I didn't have the interfaces line active in the .conf file. I have now installed samba4 and made the change in the .conf file and I will reboot to see if those fix the problem.

            Comment


              #7
              Re: How do I get Samba to start?

              No change after reboot.

              Comment


                #8
                Re: How do I get Samba to start?

                And you do have smbfs installed?

                Hmmmm. From your Kubuntu system, can you see the other computers? But from them, you can't see the Kubuntu system?

                Does
                Code:
                sudo service samba stop
                seem to stop it? And
                Code:
                sudo service samba start
                seems to start it?

                Have you tried both Dolphin and smb4k to browse to the other computers?

                Do all computers have the workgroup name exactly the same?

                That's it -- I'm outta gas on this one. :P

                Comment


                  #9
                  Re: How do I get Samba to start?

                  the stop and start commands both return "samba: unrecognized service"

                  Neither Dolphin or smb4k can now see my network. Previously, I was able to see the network and browse my other computers with Dolphin. By previously, I mean prior to these last changes. I had not tried smb4k before so I don't know if it had been working or not.

                  Yes, smbfs is installed. There's got to be some stupidly simple thing that I am missing.

                  Comment


                    #10
                    Re: How do I get Samba to start?

                    Well, since nothing else is working, let's try

                    Code:
                    sudo service samba4 start

                    Comment


                      #11
                      Re: How do I get Samba to start?

                      OK, I tried that and it said " Starting Samba 4 daemon samba " so at least something is responding.

                      Now samba4 shows up in the status list along with smbd but they both still have ? as the status.

                      The computer still doesn't show up on my network and I still can't access my other computers from Dolphin or smb4kj.

                      I can still access the Internet.

                      Comment


                        #12
                        Re: How do I get Samba to start?

                        Now try again with the smb4k browser -- see if that machine shows up in the window, as well the other computers. If it does, then probably the other computers can see it too.

                        Comment


                          #13
                          Re: How do I get Samba to start?

                          Nope, nothing shows up in either Dolphin or smb4k and this computer doesn't show up from any other computer.

                          I have another old Athlon 1600 computer on which I have installed 10.04. I just installed Samba using apt-get and without doing anything else, that computer now shows up on my network. I then had to install knetwork-filesharing to be able to actually share a folder. Now I can access that computer from my network. That's the way it's supposed to work. I didn't have to install smb4k, samba4 or anything else.

                          This computer is a Dell Inspiron 1521. I still don't know what the heck is wrong and why samba is not working correctly. Maybe I need to remove all the samba related stuff, get back to the original, and start over.

                          Comment


                            #14
                            Re: How do I get Samba to start?

                            It sounds like your network and samba are working correctly, except for on that one computer. Maybe the problem, whatever it is, is deeper than just samba configuration -- not sure what to look for, but are all the other networking functions working on it? Can you go to the "Shields Up" site and test it: https://www.grc.com/x/ne.dll?bh0bkyd2

                            Comment


                              #15
                              Re: How do I get Samba to start?

                              Yes, everything else seems to be working correctly. GRC's Shields Up says I am completely in Stealth mode. No file sharing found, no ports open, etc.

                              Comment

                              Working...
                              X