Announcement

Collapse
No announcement yet.

[Almost SOLVED] Very very frustrated. Setting up a file server with samba

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

    #16
    Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

    This is the "open" part of my samba share for data that can be shared with all users:
    path = /Data
    read only = no
    guest ok = yes
    case sensitive = no
    strict locking = no
    force user = fintan1, james1, sheryl
    maybe this will help.
    HP Pavilion dv6 core i7 (Main)
    4 GB Ram
    Kubuntu 18.10

    Comment


      #17
      Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

      Do you mean that every user is allowed to modify a file or folder that another user created? Because that's what I would need!
      Who owns the folder share in your server?

      Cristian

      EDIT: I tried that. If I change the conf file to look like yours, I can't access the share anymore! Whatever username and password I give, I'm refused access.

      Comment


        #18
        Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

        Ah okay, you are using smb4k. sorry missed that at first.
        I haven't used that for a while

        We don't use passwords at all for that share so my smb.conf. is very basic.

        Thought this would help. Obviously not. Sorry
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment


          #19
          Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

          Well, for that particular share, I wouldn't need passwords either - it's just music, it doesn't need to be concealed from anyone! But still, smb4k asks for a password when trying to mount it...
          Oh well. I've temporarily solved creating a "fake" user named mp3, and telling every user that when they want to modify the share (i.e. organize music folders, or add mp3 files, and not only listen to the music) they have to connect using the user "mp3". Not very elegant, but it works...

          Thanks
          Cristian

          Comment


            #20
            Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

            Yes, that will work
            HP Pavilion dv6 core i7 (Main)
            4 GB Ram
            Kubuntu 18.10

            Comment


              #21
              Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

              Originally posted by Quaxo76

              Oh well. I've temporarily solved creating a "fake" user named mp3, and telling every user that when they want to modify the share (i.e. organize music folders, or add mp3 files, and not only listen to the music) they have to connect using the user "mp3". Not very elegant, but it works...
              I will speculate that if you created a new GROUP, instead of a fake USER, then you make all your users members of the new group, then you set the permissions on the music share to that group, everyone can read and write with their normal user identity.

              Maybe.

              I have also found working with Samba is a black art. But I learned a couple of things just reading this thread.

              Comment


                #22
                Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

                Dibl,
                I did that. All the users are members of the "music" group. It didn't work.
                But that was before I "cleaned up" smb.conf... I might try again, and see if it works!
                The problem seems to be that when an user mounts the share, and creates a file/folder, then it belongs to that user, and others can't delete or modify it. Even if I included the "create mask = 0775" and "directory mask = 0775" options.
                I'll check if that works now...

                Cristian

                Comment


                  #23
                  Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

                  In my very limited experience with samba i have found out (thanks to the penquin) that smb4k and samba pure do not work well together.
                  For some reason smb4k puts some cryptic config files that samba doesn't like to much.

                  I presume that you have samba installed?

                  Why not try this (you can always retreat):
                  purge smb4k, reinstall samba and use this smb.config file as a starter:


                  [global]

                  workgroup = WORKGROUP
                  interfaces = eth0 (or whatever)
                  map to guest = bad user

                  [Cristian]
                  path = /data/Cristian/
                  browsable = yes
                  read only = no
                  comment = My data
                  valid users = cristian
                  force user = cristian

                  [Selene]
                  path = /data/Selene/
                  browsable = yes
                  read only = no
                  comment = Selene's stuff
                  valid users = selene
                  force user = selene

                  [Music]
                  path = /data/Music/
                  read only = no
                  browsable = yes
                  comment = MP3 music
                  read only = no
                  guest ok = yes
                  case sensitive = no
                  strict locking = no
                  force user = cristian, selene, mp3 (i don't see a user for mp3 in the above this might confuse smb4k and samba)

                  [Printer whatever]

                  printing = cups
                  path = /var/tmp
                  printable = yes
                  guest ok = yes
                  guest only = yes
                  I hope that helps.
                  HP Pavilion dv6 core i7 (Main)
                  4 GB Ram
                  Kubuntu 18.10

                  Comment


                    #24
                    Re: [Almost SOLVED] Very very frustrated. Setting up a file server with samba

                    Is there a solution already to re-enable smbfs instead of cifs?
                    My nas does not support cifs and i just can't access my files now....

                    Comment

                    Working...
                    X