Announcement

Collapse
No announcement yet.

[Kubuntu 22.04] Impossible to share a simple folder

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

    [Kubuntu 22.04] Impossible to share a simple folder

    Hello,
    I tried to create a simple folder, after that I added an user in samba, I restarted samba services. I tried to connect with this user, and password, impossible.
    Nevertheless, I allowed "Guess", when I shared the folder with dolphin topic "permission" Dolphin I don't know why, and how set in "ownership" group "sambashare". I don't know what I've done wrong, and where.
    Thx for any help.
    Last edited by nemrod; Apr 19, 2024, 07:50 AM.

    #2
    Compare what you've done with this guide: https://linuxconfig.org/how-to-confi...ellyfish-linux
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Thx Snow
      It was quite helphul, nevertheless I wrote exactly what he asked to do, but I failed to obtain the same result, in [public] area. I noticed something strange, Wriable instead of writeable, and browsable instead of browseable. I tried to correct as long as it is possible with no success. I have my path in {public] path = /home/zebulon/Immediat/ instead o his path = /var/samba/.
      Am I wrong ?

      Comment


        #4
        It would be infinitely more helpful if you posted at a minimum the "Share Definitions" section of smb.conf

        This works here (and has for many years)

        Code:
        comment = Media
        path = /exports
        force user = nobody
        force group = shared
        create mask = 664
        force create mode = 664
        directory mask = 6775
        force directory mode = 6775
        browsable = yes
        guest ok = yes
        read only = no

        Note that the "force user" and "force groups" and mask settings are options I use so that regardless of who on my network the files are accessible to everyone. You could probably leave those out and still have positive results. Each file/folder would have the ownership of the user that created them. Also, MUCH better to have your user and group IDs (numbers, not names) identical across systems.

        Please Read Me

        Comment


          #5
          Hello,
          This is part of the smb.conf U asked me before.
          ....
          ; lpadmin write = list, @root
          [share]
          path=/home/zebulon/Immediat
          read only=no
          browsable=yes
          available=yes
          public=yes

          [public]
          comment = public anonymous access
          path = /home/zebulon/MyTests/
          browseable = yes
          create mask = 0660
          directory mask = 0771
          writeable= yes
          guest ok = yes

          [homes]
          comment = Home Directories
          browseable = yes
          read only = no
          create mask = 0700
          directory mask = 0700
          valid users = %S​
          I can acccess the [homes], but not to [public]

          Comment


            #6
            You're probably going to need the "force user" and "force group" options or reduce the permissions on the share. The best way to do it depends on your use-case and security needs. My server is only accessible if you're on my local network so my permissions are loose.

            Also know that Linux file/directory permissions override SAMBA settings so you need to have your shared folder properly set.

            @here, I use a special group I named "shared" and any users on my network are members of that group. The user "nobody" means that anyone can read/edit/delete any file on the shared folders. I use a separate private folder for users to store their personal stuff.

            Please Read Me

            Comment


              #7
              Presently, Iam not in front of the problem, because I must travel -job obligations - Once I will be in front of the Desktop I will let you you.
              Thus, as Iam not Linux specialist just simple user, could you tell me exactly what should I do, what to edit and where.
              Thx for any help.

              Comment


                #8
                Moreover I want a shared folder between users in the comp, and not in the network. As U know each user home folders are well protected with Kubuntu 22.04.

                Comment


                  #9
                  Originally posted by nemrod View Post
                  Moreover I want a shared folder between users in the comp, and not in the network. As U know each user home folders are well protected with Kubuntu 22.04.
                  OK, now I'm confused. If you're not sharing over a network, why are you trying to use a network protocol?? SAMBA is for sharing folders and printers over a network in a way that is compatible with most OS's including linux. It does not provide local access to users on a single computer.

                  Please Read Me

                  Comment


                    #10
                    nemrod Read this: How to create a Shared Folder between two Local User in Linux?
                    Using Kubuntu Linux since March 23, 2007
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      I guess you can share local folders using samba, but it seems like a complicated way to do it.

                      https://www.baeldung.com/linux/share...-linux-network

                      If it were me I would:
                      • Create the folder /home/Public
                      • Set the group of this folder to "users" (100) and permissions to 2775
                      • Add any user you want to access this folder to the "users" group (100)
                      • Delete the Public folder in each users' home and replace it with a link to /home/Public
                      • Tell all your users that anything they put in their Public folder is shared with the other users
                      The permissions of 2775 will force the groups of any file saved in that folder to the folder group - "users" - thus anyone should be able to access the file if they are a member of the "users" group.

                      Please Read Me

                      Comment


                        #12
                        Originally posted by oshunluvr View Post

                        OK, now I'm confused. If you're not sharing over a network, why are you trying to use a network protocol?? SAMBA is for sharing folders and printers over a network in a way that is compatible with most OS's including linux. It does not provide local access to users on a single computer.
                        Sorry, I realized that my english is far to be perfect, and I am often misuderstood.
                        First tastk
                        - I want shared folders between computers in my samba networks.
                        Second task
                        - Inside the same computer, I want to share one folder between two users, not accessible via samba only between two users inside the same computer.
                        Am I clear ?
                        Thx all for your precious help.

                        Comment

                        Working...
                        X