I have a windows 2012R2 and NFS server, and Ubuntu 18 on the client side configured by following this link

They are in the same network. As root , I am able to mount properly the NFS in Linux. But as a regular user I get a ‘permission denied ‘ message. Even if I try to write a file to the previously mounted NFS directory , I get a ‘permission denied ‘ message too.

If I create a file as root in the NFS mount, I can't read it from Windows also because lack of permissions (Normal behavior I think).

In Windows I have set the permission Open for all computers to NFS. And my regular user in Ubuntu has no root access. What configuration am I missing?

The solution proposed in this answer doesn't work since I have checked everything in the NFS share options.

  • How is the Ubuntu machine authenticating? The "permission denied" is most likely happening because the UIDs and GIDs don't match on the client and server. Commented Apr 9, 2020 at 15:10
  • I have local users on both sides, in fact the username/password is the same. How can I configure it to send the credentials from Linux to Windows? Commented Apr 9, 2020 at 15:18
  • 1
    NFS does not authenticate via the username or the password. It authenticates via the UID and GID. Are they they same on both the client and server? Do the users and/or a group that the clients are have permissions to the directories and files on the server? Commented Apr 9, 2020 at 15:23
  • You will have to change the UIDs and GIDs on the client to match the ones on the server or else have the client authenticate via AD and give Unix attributes to the user accounts in AD. The first method is much easier. Commented Apr 9, 2020 at 15:32
  • @NasirRiley Even if I have checked the box of enabling access of non mapping users? In that case which one is the good UID and GID? You're right, even I have no AD configured in my scenario. Commented Apr 9, 2020 at 15:47

1 Answer 1


I faced this problem when I was sharing my hard drive folder. When i did mount the hard drive folder locally first and the shared the mounted folder, it worked. I have answered it in more details here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .