Announcement

Collapse
No announcement yet.

samba problem

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

    samba problem

    Hello! I have a samba problem. It have worked fine for a longe time, but yesterday its no more. It happened after I installed a new hardrive, but I dont now if its becuase of that.

    it seems it cant get to files. When I try to start it in terminal it says:
    install; can not change owner and group for /var/run/samba. Operation not allowed. When I try as root it gives no message but it says stopping samba.... [ok] starting samba.......[fail].

    When i go to the KinfoCenter under samba it says: error could not open config file smb.conf.
    When I go under log, a pop up says, Error, could not open /var/log/samba.log.

    I tried to change the permisions on the files, but its the same problem.
    I not very familier with linux som I'm a little stuck here.

    Anyone now what this could be?

    kritro

    #2
    Re: samba problem

    Originally posted by kritro
    When i go to the KinfoCenter under samba it says: error could not open config file smb.conf.
    When I go under log, a pop up says, Error, could not open /var/log/samba.log.
    O.k., for starters, let's check if these files were still available:
    Code:
    [sudo] ls -l /etc/samba/smb.conf
    [sudo] ls -l /var/log/samba.log

    Comment


      #3
      Re: samba problem

      yes they are available can be opened both from root and from my user.
      I was thinking maby its best to just install samba all over again and use my the same smb.conf.

      Comment


        #4
        Re: samba problem

        Originally posted by kritro
        maby its best to just install samba all over again and use my the same smb.conf
        Prior to that I would check if your configuration were still valid: sudo testparm ... otherwise, a reinstallation may be a waste of time.

        Addenum: you may also replace your configuration by a (very) simplistic one, e.g. resembling this "template", to hopefully narrow down which part of Samba has gone down the drain.

        Birdy


        Postscript: "template" moved to this page

        Comment


          #5
          Re: samba problem

          reinstall whas not possible, som error message came up.

          sudo testparm gave this

          kritro@kritro-desktop:~$ sudo testparm
          Load smb config files from /etc/samba/smb.conf
          params.c:Section() - Badly formed line in configuration file: ]
          params.cm_process() - Failed. Error returned from params.carse().
          Error loading services.
          --------------------------------------------
          then i made a simple smb.conf file as you sad and tried to restart. It gave this

          kritro@kritro-desktop:~$ /etc/init.d/samba restart
          * Stopping Samba daemons... [ ok ]
          * Starting Samba daemons... install: kan ikke endre eier og/eller gruppe for «/var/run/samba»: Operasjonen er ikke tillatt
          /etc/init.d/samba: line 25: 5774 Avbrutt (SIGABRT) start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd -- -D
          [fail]

          ----------------------------------------
          sudo testparm gave this

          kritro@kritro-desktop:~$ sudo testparm
          Load smb config files from /etc/samba/smb.conf
          Processing section "[HITATCHI]"
          Loaded services file OK.
          WARNING: passdb expand explicit = yes is deprecated
          Server role: ROLE_STANDALONE
          Press enter to see a dump of your service definitions

          [global]
          map to guest = Bad User
          log file = /var/log/smb.log

          [HITATCHI]
          path = /home/kritro/Hitatchi
          read only = No
          guest ok = Yes
          case sensitive = No
          msdfs proxy = no


          -------------------------------------------------------------------

          I not very familier with linux som I'm a little stuck here. Maby its better to start a fresh install of the OS

          Comment


            #6
            Re: samba problem

            Originally posted by kritro
            kritro@kritro-desktop:~$ sudo testparm
            Load smb config files from /etc/samba/smb.conf
            params.c:Section() - Badly formed line in configuration file: ]
            This looks to me as if merely your samba config file were damaged - no reason for reinstalling anything, promting some bricolage at most, I dare say ... to be more specific: you should be able to access the file in question by means of a live system (as described in these notes), and, if unsure about how to fix it, post it here to let us help you on.

            Birdy

            --

            Postscript: reference updated

            Comment

            Working...
            X