kofemann / ms-nfs41-client

NFSv4.1/pNFS client for Windows 7 developed by CITI, UMICH.
GNU Lesser General Public License v3.0
87 stars 34 forks source link

nfs_mount.exe can fail if the server does not use 'insecure' export option #13

Open cedricblancher opened 7 months ago

cedricblancher commented 7 months ago

nfs_mount.exe can fail if the server does not use 'insecure' export option. It seems the Windows nfs client always has send RPC requests from a TCP port < 1024.

smx-smx commented 7 months ago

Can confirm. The mount command must be ran as the unprivileged user, in order to place the network drive in the same user namespace (or the network share would only be accessible by Administrator). This however means the mount command will use a high port (>1024) which is deemed insecure and rejected by the server. The error isn't obvious (points to a generic getent permission denial).

gisburn commented 1 week ago

This bug is fixed since https://github.com/kofemann/ms-nfs41-client/commit/bc2898507a0e0533396982af0e8983ba4d764631