Comment 2 for bug 1908638

Revision history for this message
Evan Linde (elinde) wrote :

Hi Jochen,

Thank you for taking a look at this. My setup is for a lab that uses a central storage server to host all their data (homes, shared dirs, everything) so that workstations are fully interchangeable. The storage server is accessible via cifs using campus AD credentials. The storage volume containing the lab's data is shared at the root level and mounted at a specific top-level directory (e.g. "/data2") on the lab's workstations and some hosted systems in the HPC center; user homes look like "/data2/home/{username}".

I have found that file ownership and permissions aren't set properly for users on the cifs share if they use a mount made by another user. (I don't have notes on everything I tried, but I spent a while a couple years ago testing various mount options without finding anything satisfactory.) I have used polydirs to get around this problem; by making the mount point (/data2) a polydir, each user is able to mount the cifs share to the same mount point using their own credentials even if another user is already logged in and has the share mounted.

Here's what I see for the polydir using the code you provided:

source: /dev/mapper/ubuntu--vg-ubuntu--lv target: /data2