How to make overlay accessible via SMB

ULTIoNT

Dabbler
Joined
Jul 14, 2023
Messages
24
For some reason, I would like to separate my media library and the download directory and use overlayfs to create a merged view of them. Both the library and the download directory are owned by apps and it seems that unless I add the user to apps group, it cannot access the merged directory. That is fine but even when the user can access the directory from the console, the same user cannot access the directory over SMB. Am I missing anything?

I create the merged directory with
Code:
sudo mount -t overlay -o lowerdir=/mnt/HDD/Storage/Videos/Movies,upperdir=/mnt/HDD/Storage/Downloads/Movies,workdir=/mnt/HDD/Storage/OverlayWorkDir-MovieLib overlay /mnt/HDD/Storage/Videos/Merged
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Overlay mounts are not supported for SMB shares on TrueNAS. There is some validation when shares are created that there are no unexpected filesystems mounted under the SMB share path. We also may assert in smbd if unexpected filesystem types are encountered within SMB shares.
 
Top