Announcement

Collapse
No announcement yet.

Samba not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Samba not working

    When I try to access a samba network using Dolphin, I get an error saying invalid protocol. What does this mean, and how do I fix it?

    #2
    Welcome.

    This could e.g. mean that the protocol version used by the Samba server/by the computer with Samba shares that you are trying to connect to is not supported.
    What are you exactly trying to do - what are you trying to connect to?

    I am just guessing: please always provide as many informations as possible (hardware, software, set-up, what you have exactly done step-by-step, etc.) - this increases the chance that somebody is actually able to help you with your problem.
    Last edited by Schwarzer Kater; May 14, 2024, 04:54 AM. Reason: typo
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    Comment


      #3
      No one can guess without any actual info. Start with the relevant parts of your SAMBA set up and config

      Please Read Me

      Comment


        #4
        System info as follows:

        Operating System: Kubuntu 22.04
        KDE Plasma Version: 5.24.7
        KDE Frameworks Version: 5.92.0
        Qt Version: 5.15.3
        Kernel Version: 6.5.0-35-generic (64-bit)
        Graphics Platform: X11
        Processors: 16 × Intel® Xeon® CPU E5-2637 v4 @ 3.50GHz
        Memory: 62.7 GiB of RAM
        Graphics Processor: Quadro K2200/PCIe/SSE2

        Testparm results
        Code:
        # Global parameters
        [global]
        client min protocol = NT1
        log file = /var/log/samba/log.%m
        logging = file
        map to guest = Bad User
        max log size = 1000
        name resolve order = bcast host lmhosts wins
        ntlm auth = ntlmv1-permitted
        obey pam restrictions = Yes
        pam password change = Yes
        panic action = /usr/share/samba/panic-action %d
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server min protocol = NT1
        server role = standalone server
        server string = %h server (Samba, Ubuntu)
        unix password sync = Yes
        usershare allow guests = Yes
        idmap config * : backend = tdb
        comment = Home Directories
        create mask = 0775
        directory mask = 0775
        read only = No
        
        
        [printers]
        browseable = No
        comment = All Printers
        create mask = 0700
        path = /var/spool/samba
        printable = Yes
        read only = Yes
        
        
        [print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        read only = Yes
        
        
        [Private]
        comment = needs username and password to access
        path = /home/xxxxx/
        valid users = @samba

        I'm trying to connect to a hard drive plugged into my modem and I access it using a number of computers, some laptops via wifi, and a Dell tower, which is connected by cable to the router and is the one I'm running KDE on. .

        I've installed the Nemo v 5.2.4 file manager which can see the samba shares fine, so I think Samba is working on my computer, it just doesn't seem to be recognised by Dolphin. I can see the computer from other computers on the network when I leave the name and password fields empty in the Windows Shares section of KDE settings, but not when I save the samba user name and password I created on the KDE machine, so I've left those fields blank.

        I can see and use both network printers with no problem.

        I tried installing Smb4k and that couldn't connect to Samba shares either so I've uninstalled it again.

        When I type in the smb:// address of the drive in Dolpin, it flashes up a red warning saying "Invalid protocol" across the top of the window.

        I'm grateful for any assistance you can give me, so please let me know if there's any other information I need to provide.

        UPDATE:

        I tried the Konqueror file manager and when I tried to access the smb share, I got this message -

        The requested operation could not be completed
        Unsupported Protocol smb
        Details of the Request:
        • URL: smb://[smb address]
        • Protocol: smb
        • Date and Time: Wednesday, 15 May 2024 12:50:07 PM AEST
        • Additional Information: smb://[smb address]
        Description:
        The protocol smb is not supported by the KDE programs currently installed on this computer.
        Possible Causes:
        • The requested protocol may not be supported.
        • The versions of the smb protocol supported by this computer and the server may be incompatible.
        Possible Solutions:
        • You may perform a search on the Internet for a KDE program (called a kioslave or ioslave) which supports this protocol. Places to search include https://kde-apps.org/ and http://freshmeat.net/.
        • Update your software to the latest version. Your distribution should provide tools to update your software.
        • Contact your appropriate computer support system, whether the system administrator, or technical support group for further assistance.

        I've looked on Discover for kioslave but can't find it.
        Last edited by oshunluvr; May 15, 2024, 05:10 AM.

        Comment


          #5
          OK, so the samba config that needs to be looked at is on the SAMBA server. That file looks like it's from your client.

          Do you have all these installed on your client?

          libsmbclient
          python3-smbus
          smbclient
          python3-samba
          samba-common
          samba-common-bin
          samba-dsdb-modules
          samba-libs
          kio-extras
          kio-extras-data
          kio-extras5
          kio-extras5-data​

          Please Read Me

          Comment


            #6
            Thanks oshunluvr.

            The server is a modem, I don't know how to get the samba settings off it.

            Of the list, the followinng are not installed:

            python3-smbus
            samba-libs
            kio-extras
            kio-extras-data
            kio-extras5
            kio-extra5-data

            I've looked on Discover, and can't find any of them to install.

            Comment


              #7
              Those are packages you cannot install directly with Discover.

              You will either have to install them with the Konsole terminal emulator by entering:
              sudo apt update && sudo apt install python3-smbus samba-libs kio-extras kio-extras-data kio-extras5 kio-extras5-data

              or an alternative would be to install Synaptic for this and install them from there with the help of a GUI.

              I did not check if all of those packages do exist under these exact names - I blindly trusted oshunluvr here.
              Last edited by Snowhog; May 16, 2024, 09:23 AM.
              Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
              Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

              get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
              install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

              Comment


                #8
                The kio-extra packages have the kioslave items in them including these:

                /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/smb.so
                /usr/lib/x86_64-linux-gnu/qt6/plugins/kf6/kio/smb.so

                Please Read Me

                Comment


                  #9
                  Thanks both.

                  I ran the command, it gave the following messages:

                  Unable to locate package kio-extras5
                  Unable to locate package kio-extras5-data

                  How do I find these?

                  Comment


                    #10
                    I don't think these packages exist under those names in 24.04 (you will see this with e.g. apt search kio | grep -E "^kio" ) - and kio-extras and kio-extras-data should already be installed by default in Kubuntu 24.04 LTS (I have only looked in "Normal" and "Full Installation").
                    Last edited by Schwarzer Kater; May 16, 2024, 06:25 PM.
                    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
                    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

                    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
                    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

                    Comment


                      #11
                      It's finally working! Thanks to you all for your assistance and patience.

                      Comment

                      Working...
                      X