Hi,
I'm encountering some issues while trying to disable the option --manage-gid.
I need to mount an NFS share on a system where the primary gid of the user is not the gid of the owner of the folder. With "--manage-gids" enabled there is no way of having the system consider secondary gids. I've read online that I need to remove such option in order to have NFS check permissions using also secondary gids.
This solution solves indeed my problem: by manually updating the file /etc/default/nfs-kernel-server setting RPCMOUNTDOPTS to "", after a service restart, the NFS server works as intended.
As expected, this config change is just temporary and does not survive because omv overwrites the file. To make the change permantent, I tried to:
- set the env variable OMV_NFSD_MOUNTDOPTS to "", using omv-env set;
- ensure the env is properly updated in the file /etc/default/openmediavault;
- apply the changes, using monit restart omv-engined && omv-salt stage run prepare && omv-salt stage run deploy.
After a restart the changes I've done to the variable stuck (echo $OMV_NFSD_MOUNTDOPTS and the file /etc/default/openmediavault confirm this) but omv is still setting RPCMOUNTDOPTS="--manage-gids" in /etc/default/nfs-kernel-server, which is the file actually read by the nfs daemon.
Am I doing something wrong or is this an issue?
Is there a way to remove permanently manage-gids
from the nfs config?
Thank in advance to anybody who will spend some time trying to understand this!