• [6.9.0] Samba [homes] stopped working after upgrading to 6.9.0


    Auxilium
    • Minor

    I had [homes] Samba working without issues for several years,

    (could access \\server\homes, \\server\username)

     

    Now I found that shares stopped working and server writes this message all the time when trying to access these shares:

    `[homes] share not available for user %s because it was not found or created at session setup time`

    (https://github.com/samba-team/samba/blob/master/source3/smbd/smb2_tcon.c line 265)

     

    For me it seems like when session is established, it collects users home directories and then checks it in this place, and it's empty now?

     

    Here's how it was setup in smb-extra.conf:

    [homes]
        path = /mnt/user/homes/%S
        comment = Home directory
        browsable = no
        read only = no
        valid users = %S
        create mask = 0700
        directory mask = 0700

     



    User Feedback

    Recommended Comments

    Okay, digging into the samba code verified my suspicion,

    user home location needs to be specified at passwd for [homes] to work

    changing `/etc/passwd` to have home directory pointing at `/mnt/user/homes/<username here>`
    and restarting the samba service with `/etc/rc.d/rc.samba restart` allowed me to access the share without issues,
    now to do that for all users at `/boot/config/passwd` and I guess the issue is resolved for me for now, and anyone having this issue will hopefully find this post useful.

    Link to comment
    Share on other sites

    hi sorry to disturb but a question from a amateur-linux guy,

    so every user for share´s does need to be in the right directory in etc/passwd right?
    How is this for Active Directory integration?
    My secondary Server does have 6.9.0 now and i can´t even make a public smb-share since 6.9.0.... in 6.8.3 all is fine :/
    Maybe im missing something or its a whole other issue..
     
    Regards

    Xutho

    • Thanks 1
    Link to comment
    Share on other sites
    1 hour ago, Xutho said:

    hi sorry to disturb but a question from a amateur-linux guy,

    so every user for share´s does need to be in the right directory in etc/passwd right?
    How is this for Active Directory integration?
    My secondary Server does have 6.9.0 now and i can´t even make a public smb-share since 6.9.0.... in 6.8.3 all is fine :/
    Maybe im missing something or its a whole other issue..
     
    Regards

    Xutho

     

    Specifically a Samba [homes] share (it is special type of share) seems to requires user to have home folder defined yes,

    not sure why it didn't in 6.8.3 and requires now, but checking the source code, that's how it is now.

     

    Alternatively you can specify in a samba config a share that's not using [homes] functionality:

    [home]
        comment = %U home directory
        path = /mnt/user/<share name>/%U
        valid users = %S
        browsable = no
        writable = yes
        create mask = 0700
        directory mask = 0700

     

    When it comes to AD, honestly no idea.

    Link to comment
    Share on other sites

    @ Auxilium

    thanks for the explanation but what  defines a "home-share"?
    Is just try to share via web-gui a folder and i have no access.... or is this a "home-share"?

    image.png.ea658e16e892947d1949c719aea624e8.png
     

    Link to comment
    Share on other sites

    got it thanks :)

    seems to be i have a different issue :/ i have the issue with all smb shares 
    but good to know about home shares :D 


    many thanks


    Xutho

    Link to comment
    Share on other sites
    10 minutes ago, Xutho said:

    i have a different issue

     

    I suggest you create a new thread in General Help and include your diagnostics.

     

    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.