Announcement

Collapse
No announcement yet.

Problem with samba

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

    Problem with samba

    Hello Kubuntu Forums. Sorry I've been having M.H. issues.
    So. On one of my PC's, the zfs is having a fit, and I have created another zfs on this PC. Now the problem.... Samba.
    Q1 is there a better way to share folders between two networked computers ? And no SSH please
    Ive followed what has been posted here, and when I get the the restart smbd, I get smbd service not found error.
    Q2. why am I getting smbd service not found?
    q3. when I do properties on a folder -> click on Share -> I see "install samba" I click on it and it errors "The samba package failed to install".... even thou I did apt install samba* just to make sure I got all samba files.
    TIA
    Last edited by Snowhog; Nov 05, 2024, 09:06 AM.

    #2
    Q1: NFS

    Q2: Because you likely don't have it installed or you're looking at it incorrectly. The SAMBA service is called "smdb". But you don't need the server installed on a client machine. You need only have "smbclient" to access SAMBA shares. If you have everything needed for SAMBA already installed, you should probably be looking at your SAMBA configuration. To check if the SAMBA service is running on the server, use "systemctl status smdb". If you get "not found", it's not installed properly.

    Q3: There is no such package called "samba". SAMBA is a protocal, not a package. There are several packages with samba in the name:

    Code:
    stuart@office:~$ apt-cache search samba
    libnss-winbind - Samba nameservice integration plugins
    libwbclient-dev - Samba winbind client library - development files
    libwbclient0 - Samba winbind client library
    nautilus-share - Nautilus extension to share folder using Samba
    python3-samba - Python 3 bindings for Samba
    samba - SMB/CIFS file, print, and login server for Unix
    samba-common - common files used by both the Samba server and client
    samba-common-bin - Samba common files used by both the server and the client
    samba-dev - tools for extending Samba
    samba-dsdb-modules - Samba Directory Services Database
    samba-libs - Samba core libraries
    samba-vfs-modules - Samba Virtual FileSystem plugins
    smbclient - command-line SMB/CIFS clients for Unix
    argonaut-samba - Argonaut scripts to generate Samba share configurations
    freeipa-client-samba - FreeIPA centralized identity framework -- Samba client
    fusiondirectory-plugin-samba - samba3 plugin for FusionDirectory
    fusiondirectory-plugin-samba-schema - LDAP schema for FusionDirectory samba plugin
    gosa-plugin-samba - samba3 plugin for GOsa²
    libcrypt-smbhash-perl - generate LM/NT hash of a password for samba
    libfilesys-smbclient-perl - perl interface to access Samba filesystem
    python3-smbc - Python 3 bindings for the Samba client library
    samba-testsuite - test suite from Samba
    sambamba - tools for working with SAM/BAM data
    smb4k - Samba (SMB) share advanced browser
    smbc - samba-commander - curses based samba network browser
    smbldap-tools - Scripts to manage Unix and Samba accounts stored on LDAP
    vlc-plugin-samba - Samba plugin for VLC
    webmin - web-based administration interface for Unix systems
    stuart@office:~$​

    Please Read Me

    Comment


      #3
      Just trying to look at more information, about setup and hostnames....[HTML]https://askubuntu.com/questions/1526070/checking-why-an-nfs-mount-gives-an-error/1526224[/HTML]
      I've set exports to
      /srv/homes Mohad-Azarbar(rw,sync,no_subtree_check) Mohad-Badeel(ro,sync,no_subtree_check)
      and the website referenced has....

      / 192.168.1.0/24(rw,nohide,secure,no_subtree_check,sync)​

      would the second be a worthy option to sort of share everything?
      OR
      Can I add my main /media/user342/ folder as a share and all the drives that appear here would appear as an exported share?

      ALSO
      Is there an NFS guide for dummies. I know I've tried this before and failed. I was forced to reformat the entire BOOT HDD.

      Comment


        #4
        Oh! Great....

        Warning

        The mount point directory /opt/example must exist. There should be no files or subdirectories in the /opt/example directory, else they will become inaccessible until the nfs filesystem is unmounted

        I Is Confused. All I want to do is share current Drives, mounted and in use.... Please a simple How-to Guide

        Comment


          #5
          kdenetwork-filesharing adds an SMB sharing option to a directory's properties via the right-click menu.
          It has been hit or miss in the past, but might be useful in recent years.

          I also recently found this very basic but functional little tool for NFS sharing - imo much better than SMB

          https://github.com/Philippe734/Simple.NFS.GUI

          Comment


            #6
            Originally posted by CharlieDaves View Post
            Oh! Great....

            Warning

            The mount point directory /opt/example must exist. There should be no files or subdirectories in the /opt/example directory, else they will become inaccessible until the nfs filesystem is unmounted

            I Is Confused. All I want to do is share current Drives, mounted and in use.... Please a simple How-to Guide
            You can't mount to a non-existent directory. The error message seems clear enough. The warning at the end of the message is just informing you that if you choose to mount to a directory that contains existing files, they will be hidden while the mount is active. Again, seems clear enough.

            Also, there's no way failing to set up NFS would create a need to reformat a file system. NFS is just a file sharing protocol. There had to be a whole lot of shenanigans between trying to set up NFS and needing to wipe a file system.

            Try the tool claydoh pointed out - I hadn't been aware of that before.

            IME, NFS is super easy to set up once you understand what you are doing. The relationship is "server < client". The server makes files available, the client finds them and accesses them.

            The steps are:
            On the server:
            Install packages nfs-common and nfs-kernel-server.
            Define exports (what to share). These are listed on the server in "/etc/exports". The file has examples in it.
            Load the exports or restart NFS or reboot the server.

            On the client:
            Install nfs-common.
            Define the mount(s) for the exports in /etc/fstab.

            How you set up exports depends on what you want to share - many directories or just one? Every computer on the network or just one? All users can access the exports or just one?
            You can define multiple exports individually or just share a directory with many directories in it and mount them individually.

            My suggestion is to attempt to get a very basic export shared and mounted so you can see it works. Then do more research on fine tuning the exports and mounts to improve usability. The only complex thing about NFS is the literally dozens of export and mount options but don't get hung up on that now, just get a default set up working.

            Please Read Me

            Comment


              #7
              Originally posted by claydoh View Post
              I also recently found this very basic but functional little tool for NFS sharing - imo much better than SMB

              https://github.com/Philippe734/Simple.NFS.GUI
              Yeah. I've tried this, but it doesn't work, locks up PC, and I don't see the radio buttons to make a selection.
              Thanks anyhow. I think it was posted above/earlier

              another question.... if Samba smb.conf holds the hostname and the workgroup, how does NFS work without samba?
              Can I set a workgroup, if so how?
              Can I set a servername or PC name, if so how?

              Now, I've had a play with my modem/router and set pcname1, MAC, specificIP, for both pc's.

              The other weird questions are what is written in the export file
              Code:
              # Example for NFSv2 and NFSv3:
              # /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
              #
              # Example for NFSv4:
              # /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
              # /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
              ​
              Do i assume I am using NFSv4 since it was created 2010.
              Q- What the heck is gss/krb5i ?? What does this mean or point to, etc

              Could someone please post their exports file
              /etc/fstab file if they are using it
              Last edited by CharlieDaves; Nov 10, 2024, 08:05 PM.

              Comment


                #8
                Quick Question. I was reading somewhere, not to sure how old the post was, but can you have 2pc's same network, both as clients?
                OR
                Does one have to be a server?

                MOVED to
                https://www.kubuntuforums.net/new-content/659017
                Last edited by CharlieDaves; Nov 10, 2024, 11:28 PM.

                Comment

                Working...
                X