I have a setup where a file share is exposed to Windows with samba, and at some level contains a nullfs mountpoint, a bit like this:
However there's a problem. While a user can browse in Windows through the share hierarchy correctly, "find file" (as root, or from the Windows end) doesn't seem to work properly.
A similar issue is described on stackexchange here, and the answer was that when traversing a dir that's a nullfs mountpoint, the relevant permission is that set on the mountpoint directory (pool1/subdir1), not the permissions set on the root of the mounted file system (pool2). It says the solution is to unmount, chmod 755 the mountpoint, and remount.
However chmod doesn't actually work on CIFS mountpoints if the file system uses ACLs, as Cyberjock explained here. So how do I fix it?
- dataset #1 is mounted at: /mnt/pool1 and contains subdir1
- dataset #2 is mounted at: /mnt/pool2
mount_nullfs /mnt/pool2 /mnt/pool1/subdir1
However there's a problem. While a user can browse in Windows through the share hierarchy correctly, "find file" (as root, or from the Windows end) doesn't seem to work properly.
A similar issue is described on stackexchange here, and the answer was that when traversing a dir that's a nullfs mountpoint, the relevant permission is that set on the mountpoint directory (pool1/subdir1), not the permissions set on the root of the mounted file system (pool2). It says the solution is to unmount, chmod 755 the mountpoint, and remount.
However chmod doesn't actually work on CIFS mountpoints if the file system uses ACLs, as Cyberjock explained here. So how do I fix it?