AD user permission on NFS share mounted on Windows NFS client
Issue
-
RHEL 7.6 server as NFS server.NFS Share exported and mounted to both Linux and Windows clients ( windows 2016 )
Both NFS server and NFS clients are joined to AD domain. -
NFS share mounted on NFS Linux client can read & write using AD domain accounts. Options used to export are "options=rw,sync,no_root_squash"
However, when mounting same NFS share in Windows with default option. We are using Windows NFS clients comes with optional feature pack. With the default option, NFS could mount successfully in windows, however write permission was not available for any of the AD user. To enable write permission, we modified Windows registry and used Anonymous UID and GID to 0. After re-starting the services and mounted NFS share, can write from AD for any AD users. -
Now, when we come back to NFS Linux client and check the file ownership, it shows as root user, not the user who wrote or created it. We tried to change the registry settings for the AD user's UID and GID, it failed to mount the NFS share. So, have no choice to keep it as 0.Also enabled idmapd.conf file in NFS Linux client to test if this helps, however no change at all.
-
Is there any way to make this work - ownership of a file that write from NFS windows client on NFS share to be reflected same as in NFS Linux client, where both machines are part of same AD domain ?
Environment
- Red Hat Enterprise Linux 7.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.