RHEL clients displays Anonymous UID and GID in the permission for the files and folder that are shared over NFS v4.1



Getting Network Error 53 "Network path not found"


Recently we got a case where customer was unable to access NFS share from Windows 2008 R2, Client for NFS.

We tried mounting the NFS share using the command below:

The error we got after the command was completed was "Network Error 53". Then to test the access, we tried mounting the share using the Map Network drive. It prompted for a user name and password. We observed the same behavior while trying to use the UNC path to access the share.

Later we found that the directory on the Solaris box, which we were trying to access, was shared both through SMB and NFS.

So, while we were trying to use the mount command, Windows client was assuming the share to be a SMB and failing. Due to the same reason, we were getting prompted for User name and Password.

Then we change the priority list in the provider order. We moved NFS on above "Microsoft Windows Network" and restarted the Client for NFS service. Provider order can be found under Network connection => Advance => Advance settings =>Provider order

Once we do this, the Multiple UNC Provider (MUP) checks for this request against the network providers according to their priority listing. Each network redirector responds back with a handle to the wanted resource.

Hence, when we moved NFS on top of "Microsoft Windows Network", mount command started working as it was assuming it to be a NFS share. Even through UNC
things worked and we were not prompted for user name and Password.

This is applicable in case same directory is shared from Unix server through NFS and SMB. In other scenario, provider order does not matter a lot.


Getting Red X sign on mounted NFS volume from Windows client


Windows NFS client is known not to handle multiple path NFS shares. The issue is by design and comes when the client is mounting an NFS share which is more than 26 characters in length. 

Users would be able to access the NFS shares after mounting it to a drive letter but a red X (disconnected) sign would be there on the mounted volume. The NFS mounted drives will be in connected state even if UI shows disconnect. 

The recommendation would be to have a single path nfs share like "\\servername\sharename" or a multipath NFS share having less than 25 characters.


How can we control the permission on the files created from Windows NFS client


We do get a lots of issue where the customer reports that "Permission ere not getting inherited on the newly created files and folder on the NFS client side". This scenario is intended for the scenario where Windows is the NFS client (running "client for NFS") service.

Usually the confusion is that the permission on the newly created files / folders should get inherited from the server to the client. In case on Windows acting as "Server for NFS" we can enable the "keepinheritance" registry key. More inputs on "KeepInheritance " is given in the article below:

I am not sure, if there is anything equivalent on the Unix side.

So the default behavior is the permission of the newly created files and folder depends on the NFS client from where it has been created and not on the NFS Server. This behavior is similar to the UMASK on Unix world. Hence the permission gets inherited when the files and folder are on the same local location.

In case of NFS access, where server-client is involved, the permission on the newly created files and folders depends on the setting on the NFS clients. In case of Unix environment, UMASK controls this. In case of Windows, we have an umask equivalent ( refer the image below).

Default

As per the customer's requirement, he had set the permission on the NFS share as '777' on the Server side and wanted similar behavior on the NFS client side. To resolve the issue, we made the changes below on the "client for NFS' properties and restarted the 'client for NFS' service.

Modified


IDMU tools missing from RSAT installation on Windows 8


IDMU tools is not part of the RSAT installation for Windows 8. There is a documentation error on the support article https://support.microsoft.com/kb/2693643/en-us talks about the presence of IDMU tools under RSAT.

However this has been added back on Windows 8.1 and now IDMU is a part of the RSAT tools for Windows 8.1 released though https://www.microsoft.com/en-us/download/details.aspx?id=39296


Installing SUA components on Windows 8


Recently, after the build conference we installed Windows 8 Developer preview edition here. I was checking different components related NFS, IDMU and SUA. While trying to install SUA components I noticed that it is marked as [DEPRECATED].

 

 

 

 

 

 

 

 

 

 

 

 

 

Looks like we are planning to move away from SUA components. I will get back here once we have some updates on the time frame on this.

BTW, the installation was smooth. There is no SDK released so far, after the installation it will redirect to download the SDK from https://www.microsoft.com/download/en/details.aspx?id=2391 (SUA SDK for Windows 7 / Windows 2008 R2) link.


Issue opening files created in Windows EFS directory from UNIX clients over the NFS connection from Windows Server 2008 R2


In recent past, we did have multiple customer reporting issues on files getting corrupted for the below scenario "files created in Windows EFS directory from UNIX clients over the NFS connection" 

The environment in questions was Windows 2008 R2 as NFS server and Linux client as NFS client. 

With our troubleshooting and research we found out that the issue is due to the way the users' token impersonation in done in Windows Server 2008/2008 R2. The behavior is by design. In addition to that, we also were able to find another very important piece of information about EFS and NFS combination. It turned out that when using EFS, the files and folders, created from the UNIX NFS clients, can only accessed from the UNIX NFS clients. The corresponding Windows/AD users on the Windows systems locally or over the network will not be able to access them as long as they are encrypted. This is a by design in Server for NFS component in Windows Server 2008 and Windows Server 2008 R2.

For example, if we create a file from Unix clients on an EFS NFS share, you would be observe the below information in the properties of the file. This is the reason why the mapped AD user is unable to open the file from Windows NFS server.

Hence, to conclude we can say EFS over NFS have not been tested and is not recommended. Using BitLocker would be a better option to secure the environment.


Issue where the timestamp are removed while copying files from the drive to the NFS shares


The timestamp gets modified to the current system date, while the files are copied from local drive to mounted NFS drive. File timestamp could be important for auditing purpose, running backup tools or for other reasons.  

The effected Windows O/S are:

- Windows 2003, SFU 3.5 , Client for NFS

Windows 2003 R2, Client for NFS  

Example
1:
We mount a NFS share on Windows 2003, NFS client to a drive. Then we copy a file from local C:\ drive which has a time stamp (‎Tuesday, September 14, 2010, ‏‎ 11:04:37 PM) to the mounted NFS drive. After the copy the timestamp gets changed to the current system time.

During our testing we found that the issue looks like a bug with the NFS client and the behavior is inconsistent. We also tested another scenario:

Example
2:
We mounted the NFS share on Windows 2003, NFS client using the mount command and also tried browsing the NFS share on the same machine through UNC. While the timestamp issue was still there while we were copying files to the mounted drive explorer windows, the issue could not be reproduced while copying the files to UNC explorer windows.

But this behavior was not consistent.

However the issue is not there with Windows 2008/2008 R2, client for NFS.

Owing to the fact that both SFU 3.5 and Windows 2003 are outside mainstream support, this bug will not get fixed. The URL below talks about the lifecycle for both the products.  

https://support.microsoft.com/lifecycle/?p1=3207 ==> SFU 3.5

https://support.microsoft.com/lifecycle/?LN=en-us&p1=3198&x=7&y=13 ==> Windows 2003

 

Our recommendation on this would be to upgrade to Windows 2008/2008 R2.