Announcement

Collapse
No announcement yet.

[RESOLVED] Samba installed, but not /etc/init.d/samba

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

    [RESOLVED] Samba installed, but not /etc/init.d/samba

    It's all in the title. I have installed samba on Natty, but /etc/init.d/samba is not there, so nothing works.

    What to do? Thanks in advance.
    'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

    #2
    Re: Samba installed, but not /etc/init.d/samba

    In a terminal, issue

    Code:
    sudo service samba start
    Does it start the daemons, or does it give you an error output?

    Comment


      #3
      Re: Samba installed, but not /etc/init.d/samba

      $ sudo service samba start
      [sudo] password for jon:
      samba: unrecognized service
      'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

      Comment


        #4
        Re: Samba installed, but not /etc/init.d/samba

        It acts like it wasn't installed. In a terminal, issue:

        Code:
        sudo apt-get update && sudo apt-get install --reinstall samba
        (just to be certain).

        Comment


          #5
          Re: Samba installed, but not /etc/init.d/samba

          Before I saw your reply, i tried

          $ samba
          The program 'samba' is currently not installed. You can install it by typing:
          sudo apt-get install samba4

          so I installed samba4. Now I still get the same result to the above command, however


          $ sudo service samba4 start
          * Starting Samba 4 daemon samba

          Is this a new version? Is it the one I want?

          Thanks again, dibl.



          'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

          Comment


            #6
            Re: Samba installed, but not /etc/init.d/samba

            Now I get this:

            $ sudo /etc/init.d/samba4 start
            * Starting Samba 4 daemon samba Unknown parameter encountered: "username map"
            Ignoring unknown parameter "username map"
            Unknown parameter encountered: "printcap name"
            Ignoring unknown parameter "printcap name"
            Unknown parameter encountered: "syslog only"
            Ignoring unknown parameter "syslog only"
            Unknown parameter encountered: "guest ok"
            Ignoring unknown parameter "guest ok"
            Unknown parameter encountered: "write list"
            Ignoring unknown parameter "write list"
            Unknown parameter encountered: "guest ok"
            Ignoring unknown parameter "guest ok"
            Unknown parameter encountered: "force user"
            Ignoring unknown parameter "force user"
            Unknown parameter encountered: "force group"
            Ignoring unknown parameter "force group"
            Unknown parameter encountered: "valid users"
            Ignoring unknown parameter "valid users"

            Are these config stuff that do not work any more in samba4? Should I even be running samba4?
            'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

            Comment


              #7
              Re: Samba installed, but not /etc/init.d/samba

              Ok, it seems samba4 is experimental, so I deleted it with dpkg. I reinstalled samba and now smbd is running. But there is still no samba command in /etc/init.d.

              I am trying to use the method explained at

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

              'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

              Comment


                #8
                Re: Samba installed, but not /etc/init.d/samba

                I have tried the gui method described at

                http://www.unixmen.com/linux-tutoria...erkat-via-gui-

                but every time I change something, it complains:

                invoke-rc.d: unknown initscript, /etc/init.d/samba not found.

                Yet, elsewhere, http://ubuntuforums.org/showthread.p...02605&page=101, it suggests that in Ubuntu samba is not managed with samba but with smdb:

                sudo service smbd restart

                Some clear documentation would be helpful.
                'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

                Comment


                  #9
                  Re: Samba installed, but not /etc/init.d/samba

                  Ya I don't know anything about samba4 -- AFAIK it is not needed for normal samba networking to Windows boxes. I'm not a samba expert, especially on the security side of it. I use a real simple smb.conf file on my home LAN and everyone can see pretty much everything. I'm not sure what piece of the puzzle you are still missing -- as I recall there are 2 daemons that need to run, smbd and I don't remember the second one, and I'm away from home stuck on the wrong OS to look it up. If there's no answer in 4 hours I'll try again.

                  Comment


                    #10
                    Re: Samba installed, but not /etc/init.d/samba

                    its /etc/init.d/smbd <restart|start|stop> (you can use the "service" command also the same way)

                    its the samba daemon you want to restart hence the abreavation smbd (smb being the protocal and d being for daemon). iirc on other debian based distros its also smbd.
                    Mark Your Solved Issues [SOLVED]
                    (top of thread: thread tools)

                    Comment


                      #11
                      Re: Samba installed, but not /etc/init.d/samba

                      OK, to try to shed a little light on this, I opened my Kubuntu 11.10 VM, updated it, and installed samba:

                      Code:
                      don@ubuntu:~$ sudo apt-get install samba
                      Reading package lists... Done
                      Building dependency tree    
                      Reading state information... Done
                      The following packages were automatically installed and are no longer required:
                       linux-headers-2.6.39-3 linux-headers-3.0.0-7 linux-headers-2.6.39-3-generic
                       linux-headers-3.0.0-7-generic
                      Use 'apt-get autoremove' to remove them.
                      Suggested packages:
                       openbsd-inetd inet-superserver smbldap-tools ldb-tools
                      The following NEW packages will be installed:
                       samba
                      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                      Need to get 8,077 kB of archives.
                      After this operation, 23.5 MB of additional disk space will be used.
                      Get:1 [url]http://us.archive.ubuntu.com/ubuntu/[/url] oneiric/main samba amd64 2:3.5.9~dfsg-1ubuntu1 [8,077 kB]
                      Fetched 8,077 kB in 16s (488 kB/s)                       
                      Preconfiguring packages ...
                      Selecting previously deselected package samba.
                      (Reading database ... 141285 files and directories currently installed.)
                      Unpacking samba (from .../samba_2%3a3.5.9~dfsg-1ubuntu1_amd64.deb) ...
                      Processing triggers for man-db ...
                      Processing triggers for ufw ...
                      Processing triggers for ureadahead ...
                      Setting up samba (2:3.5.9~dfsg-1ubuntu1) ...
                      Generating /etc/default/samba...
                      Importing account for nobody...ok
                      Importing account for don...ok
                      update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
                      smbd start/running, process 15596
                      nmbd start/running, process 15623
                      Note the two daemons, smbd and nmbd: http://www.samba.org/samba/docs/man/...-3/nmbd.8.html

                      Next, I took a look in /etc/init.d and found no samba there. So that is normal.

                      Finally, I attempted to restart samba, and learned something. You have to restart each of the two daemons separately (unless there is a way to concatenate them that I don't know):

                      Code:
                      don@ubuntu:~$ sudo service smbd restart
                      smbd start/running, process 15785
                      don@ubuntu:~$ sudo service nmbd restart
                      nmbd start/running, process 15796
                      don@ubuntu:~$
                      I took a look in /etc/samba, and there is the expected smb.conf file, in all its default glory. So that is what you should expect to have on your system. From there, your configuration is as you need it -- there are lots of guides around the 'net and I do believe some examples have previously been posted on this forum.




                      Comment


                        #12
                        Re: Samba installed, but not /etc/init.d/samba

                        I had pretty much arrived at that conclusion. It's a bit odd that the GUI still wants to use the samba command, which is not supported in Ubuntu (or, apparently, any Debian Linux). Little inconsistency there.

                        Thanks a lot, dibl.
                        'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

                        Comment

                        Working...
                        X