I have one NFSv4 server (Debian 11) and two client machines (Debian 11) which are mounting a NFS share exported by the server with all_squash option. I set the all_squash option because the two client machines have one user with same name but different UID. As addition to all_squash i set the anonuid and anongid option.
My Problem is that my setup works and i can write and read the files on the NFS share from clientside with the specific user, but other users on the clients have access with same rights to the files as well.
Is there a way to restrict the access to the share on clientside?