Announcement

Collapse
No announcement yet.

Samba server not working after upgrade

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

    Samba server not working after upgrade

    I have a bunch of machines serving files through Samba, but after the upgrade to Hardy, I can no longer connect to any of them (around 10 machines).

    I answered no to the "replace samba.conf" question during upgrade, as I didn't want to have to redo that file on all the machines, so this may be part of the problem.

    Any suggestions to what may be wrong and how to fix it?

    #2
    Re: Samba server not working after upgrade

    I had to change the both client and server configs to use encrypt passwords = yes after the 8.04 upgrade.

    Comment


      #3
      Re: Samba server not working after upgrade

      Finally, I had the time to try it, but it didn't make any difference.

      The client machines, in this case, are Windows machines (2000 and XP).

      Any other ideas?

      Comment


        #4
        Re: Samba server not working after upgrade

        Can you connect using the program Smb4k? It works great for me. It's in the repository.

        Mike
        sudo make me rich<br /><br />Kubuntu Gutsy 7.10<br />KDE 3.5<br />Compaq Presario 5000<br />Intel Celeron 1.2 Ghz<br />512 Ram, Riva TNT2 Video Card<br />All the above hardware is 7 year old junk but<br />Linux runs great on it.&nbsp; :&gt<br />Ham Radio Rules

        Comment


          #5
          Re: Samba server not working after upgrade

          That will not help. It's the Linux machine that's the server, the Windows machines that are the clients (I have some Linux clients as well, but they are not as urgent to get working).

          Anyway, here's my smb.conf:

          Code:
          [global]
            ; General server settings
            netbios name = ****load
            server string =
            workgroup = troberg
            announce version = 5.0
            socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
          
            passdb backend = tdbsam
            security = user
            null passwords = true
            encrypt passwords = true
            username map = /etc/samba/smbusers
            name resolve order = hosts wins bcast
          
            wins support = yes
          
            printing = CUPS
            printcap name = CUPS
          
            syslog = 1
            syslog only = yes
          
          ; NOTE: If you need access to the user home directories uncomment the
          ; lines below and adjust the settings to your hearts content.
          ;[homes]
            ;valid users = %
            ;create mode = 0600
            ;directory mode = 0755
            ;browseable = no
            ;read only = no
            ;veto files = /*.{*}/.*/mail/bin/
          
          ; NOTE: Only needed if you run samba as a primary domain controller.
          ; Not needed as this config doesn't cover that matter.
          ;[netlogon]
            ;path = /var/lib/samba/netlogon
            ;admin users = Administrator
            ;valid users = %
            ;read only = no
          
          ; NOTE: Again - only needed if you're running a primary domain controller.
          ;[Profiles]
            ;path = /var/lib/samba/profiles
            ;valid users = %
            ;create mode = 0600
            ;directory mode = 0700
            ;writeable = yes
            ;browseable = no
          
          ; NOTE: Inside this place you may build a printer driver repository for
          ; Windows - I'll cover this topic in another HOWTO.
          [print$]
            path = /var/lib/samba/printers
            browseable = yes
            guest ok = yes
            read only = yes
            write list = root
            create mask = 0664
            directory mask = 0775
          
          [printers]
            path = /tmp
            printable = yes
            guest ok = yes
            browseable = no
          
          ; Uncomment if you need to share your CD-/DVD-ROM Drive
          ;[DVD-ROM Drive]
            ;path = /media/cdrom
            ;browseable = yes
            ;read only = yes
            ;guest ok = yes
          
          [share]
            path = /home/anders/share/
            browseable = yes
            read only = no
            guest ok = no
            create mask = 0644
            directory mask = 0755
            force user = anders
            force group = anders
          It doesn't matter if encrypt passwords is used or not, and it used to work in Gutsy.

          Surely, someone else must have this problem?

          Comment


            #6
            Re: Samba server not working after upgrade

            Have you verified that your Samba username and Samba passwords for each client, which are stored on your Linux machine, are still valid after upgrading? Try resetting one and see what happens.

            A side note - I used that exact same smb.conf file. It never worked for me. I screwed around with it for weeks and it just never did work.
            sudo make me rich<br /><br />Kubuntu Gutsy 7.10<br />KDE 3.5<br />Compaq Presario 5000<br />Intel Celeron 1.2 Ghz<br />512 Ram, Riva TNT2 Video Card<br />All the above hardware is 7 year old junk but<br />Linux runs great on it.&nbsp; :&gt<br />Ham Radio Rules

            Comment


              #7
              Re: Samba server not working after upgrade

              Also, I downloaded a GUI for Samba. From the "About" file:

              Samba Server Configuration Tool 1.2.50
              Copyright 2002 - 2005 (c) Red Hat, Inc.
              Copyright 2002 - 2004 (c) Brent Fox <bfox@redhat.com>
              Copyright 2002 - 2004 (c) Tammy Fox <tfox@redhat.com>
              Copyright 2004 - 2005 (c) Nils Philippsen <nphilipp@redhat.com>

              A graphical interface for configuring SMB shares
              You can find it in the repository under "system-config-samba". It worked great for me.

              Mike
              sudo make me rich<br /><br />Kubuntu Gutsy 7.10<br />KDE 3.5<br />Compaq Presario 5000<br />Intel Celeron 1.2 Ghz<br />512 Ram, Riva TNT2 Video Card<br />All the above hardware is 7 year old junk but<br />Linux runs great on it.&nbsp; :&gt<br />Ham Radio Rules

              Comment


                #8
                Re: Samba server not working after upgrade

                Have checked usernames and password, even removed them and re-entered them, didn't work.

                Tried the GUI as well. Very nice and saves a lot of work, but didn't fix my problem.

                I've also gone back to the default smb.conf and then added my share with the GUI and a bare minimum of meddling in the settings, still don't work.

                One odd thing I noticed in the GUI is that the password and user files are supposed to be in the /etc/samba directory, but I can't see them there. Where are they, so I can change the path?

                Here's my situation:

                Clients: Win2000, Win2000 Server, WinXP and Kubuntu Hardy Heron. DHCP is used.
                Server: Kubuntu Hardy Heron, also using DHCP.

                Anyone who has a smb.conf for something similar that works, so that I have something to start from?

                Comment


                  #9
                  Re: Samba server not working after upgrade

                  More info:

                  It's probably something with the logon, as I can browse to the share, but can't access it.

                  I get the same result when I try to browse it from my XBox with XBMC.,

                  Comment


                    #10
                    Re: Samba server not working after upgrade

                    I seem to be having the same problem. After upgrading to Hardy samba has stopped working for me. Changing security = user to security = share in my smb.conf allowed me to see the shares but they won't open. I reset the passwords on the samba users but no go. I'm getting a bit pissed at kubuntu for breaking this on the upgrade and with a lot of work so far I haven't been able to resolve it. Samba should not be this difficult, or difficult at all, it is not with other distros.

                    Comment


                      #11
                      Re: Samba server not working after upgrade

                      Are you getting any errors in the log files? (/var/log/samba). I have about 4-5 samba machines running hardy (not Kubuntu, but that shouldn't make a diff) which were upgraded from dapper and don't have this issue.

                      Do you get any errors running testparm? How about /etc/init.d/samba restart?
                      Dell Optiplex 580<br />Kubuntu 10.10 + backports

                      Comment


                        #12
                        Re: Samba server not working after upgrade

                        Nope, no errors. Removing the group entry from the config file worked, though.

                        Too bad I had an electrical fault during a thenderstorm, which, for some insane reason, killed off the name resolution (only) on part of the network (only). I'm not even trying to understand that, I'll just throw money at the problem by replacing networking equipment until it works. I had the stuff working for less than a day. Curse you Thor, god of thunder!

                        Comment


                          #13
                          Re: Samba server not working after upgrade

                          Glad you got it working. I still have had no luck though. Which group entry did you remove?

                          Comment


                            #14
                            Re: Samba server not working after upgrade

                            Under the share section:

                            force group =

                            I just deleted that line and went with user only.

                            Comment


                              #15
                              Re: Samba server not working after upgrade

                              Ok, thanks. Finally got it working. I had tried this yesterday but it wasn't working with just an /etc/init.d/samba restart. I actually had to reboot the computer to get it to go.
                              (Makes it harder to work on things having to do a full reboot when restart isn't doing enough, but I'm happy again)

                              Comment

                              Working...
                              X