You are not logged in.

#1 2022-09-12 19:22:55

Registered: 2013-03-31
Posts: 14

Samba - access based share enum not working as expected

Dear Forum users,

on my long-term (2years) arch linux server, I am running a small samba configuration with several shares.
I would like users to only see the shares which they have access to - which is why I am using the "access based share enum = yes" configuration option (see smb.conf(5) )

This was working as expected until samba 4.16 arrived (I admit that I cannot prove that 4.16 changed that, but it does look like it).
The behaviour since 4.16 is that all shares are invisible, even though I can still access them.

I have stripped down my smb.conf to a minimum version with just one share, the problem persists.
Here is the output of testparm smb.conf:

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed


Press enter to see a dump of your service definitions

# Global parameters
        disable spoolss = Yes
        dns proxy = No
        interfaces =
        load printers = No
        logging = systemd
        printcap name = /dev/null
        server role = standalone server
        server string = rathernotsay
        show add printer wizard = No
        idmap config * : backend = tdb
        hosts allow = 192.168.14. 192.168.16. 192.168.17. 10.1. 127.
        printing = bsd

        access based share enum = Yes
        comment = temporary files
        create mask = 0770
        directory mask = 02770
        force create mode = 0660
        force directory mode = 02770
        path = /mnt/subvol_mounts/samba/temp
        read only = No
        valid users = +samba_temp
        vfs objects = btrfs

Would anyone have an idea what I am doing wrong or have any hints how to further debug this topic?
I have also checked the samba changelog and found nothing related to it.

Thank you very much in advance for your help!


Board footer

Powered by FluxBB