Unable to run the ‘chown’ command from Unix clients (Permission denied)

Recently we got an issue where the Users from Unix clients were getting permission denied while trying to run the chown the command.

The users were getting the error even if they were owner for the files. The environment was:

Windows 2008 R2, Server for NFS, Solaris NFS client

We checked the NFS and NTFS related permission. All seems to be correct.

Then we found that the registry key Restrictchown was enabled. This registry key is under the location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerForNfs\CurrentVersion\Exports

We did set the value to 0 and restarted “Server for NFS” service. This resolved the issue.