[SOLVED] Unexpected behavior for samba share

Hello,

I have created in my scale instance /mnt/tank/samba in order to create further datasets inside it, and share it with samba.

I have then created two datasets inside, public and wilcomir. I can connect to public via guest user, and no password, and it works fine - but when I connect to wilcomir a folder named wilcomir is created within, and I have noticed that if I connect as guest to it, a folder named guest is created into it. The share is not setup as a home share.

I am sure I am missing something silly to check - can anyone point me in the right direction? Thanks!

I was able to finally fix this.

Under the share settings, as Purpose I had selected “Private SMB Datasets and Shares”.

This adds the following custom option:

zfs_core:zfs_autocreate=true

which I believe leads to a behavior that is similar to a home folder, where each user gets its home created automatically. This is mentioned in the documentation, but I overlooked it.

Setting the Purpose to “Default Share Parameters” solved the issue for me.

1 Like