I'm currently using
mhddfs to mount three hard drives into a singluar pool directory. However, due to the
allow_other option set, all users have full rw permissions in the pool directory (ignoring any set permissions on the files/folders). I know this is expected behaviour as the pool gets mounted as root and any user that changes into the pool's directory gets their permissions elevated to root.
Mount point in
mhddfs#/mnt/disk1,/mnt/disk2,/mnt/disk3 /storage/pool fuse defaults,allow_other,nonempty 0 0
It seems that
allow_other doesn't care which user actually mounted the pool (same thing happens when I manually mount as myself). Naturally, taking that option out correctly limits the pool to my view only (ignoring any groups I'm in) but I want it viewable at the very least to other users in the same group set by the pool's permissions:
$ cd /storage && ls -l drwxr-x--- 2 josh share 4096 Feb 16 17:57 pool
Any users in the
share group should have read/execute perms. I'm currently exposing this pool via NFS, with
all_squash set and
anongid=1004 (id of share).
Is there a way to use mhddfs so that each user's permissions are properly respected when looking in the mounted pool, while still visible to all users? Somewhat similar to the way NFS's
all_squash works. Having scoured manuals and other forums, I've turned up bupkiss.