CentOS 8 NFS client connecting to Server 2022 NFS server

Anonymous
2023-09-09T03:01:38+00:00

I have an Apache Tomcat server running on CentOS 8. I'm running Tomcat as a local user "tomcat". UID is 498 and GID is 1001. I need to mount an NFS share from a Windows Server 2022 called "Requisitions" on the CentOS server so a Tomcat app can read/write to the Requisitions share. Ultimately, I need to add an entry to /etc/fstab so the share is always mounted.

I have the share setup with AUTH_SYS & Allow unmapped user access by UID/GID and then setup my hosts by IP address (RW, no root). But it is really hazy what I need to do next to get this working... I added "passwd" and "group" files into C:\Windows\System32\drivers\etc. I probably did not do it right, but the logs say it loaded them.

Both servers are members of an AD domain but I'd prefer not to leverage that at this time. I'd like to get the share mounted and have the tomcat user be able to manipulate the share as needed.

On CentOS, I can mount the NFS share but it maps to nobody and I have to use sudo to list or manipulate files on the share. This clearly won't work for my needs, but highlights that I need to get the permissions/users mapped in order to resolve this.

Do I need to keep working on my passwd and group files OR is there something else I need to do (like use New-NfsMappedIdentity)?

Windows for business | Windows Server | Directory services | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-09-11T03:22:59+00:00

    Hello BrianPaquin,

    Thank you for posting in Microsoft Community forum.

    Based on the description, I understand your question is related to mount the NFS share from a Windows Server 2022 On CentOS. You can mount the NFS share on CentOS but it maps to nobody.

    Not sure the issue is related to some settings on Windows server 2022 or CentOS. However, you can try to check as below:

    1.Check the NFS server versions and NFS Client version.

    Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022 NFSv2, NFSv3, NFSv4.1 (NFS Server Versions NFSv2, NFSv3 (NFS Client Versions

    2.You can check deploy NFS steps on Windows.

    For more information, you can refer to links below.

    Deploy Network File System | Microsoft Learn

    Network File System overview | Microsoft Learn

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    0 comments No comments