• Scalable File Service

sfs
  1. Help Center
  2. Scalable File Service
  3. User Guide
  4. Troubleshooting
  5. Data Fails to Be Written to a File

Data Fails to Be Written to a File

Symptom

If a file system is mounted to an ECS running Linux and an ECS running Windows, on the ECS running Windows, data cannot be written to the files created on the ECS running Linux.

Possible Causes

A shared NFS file system belongs to the root user and cannot be modified. The write permission is granted to a user only when both the UID and GID of the user are 0. You can check your UID using Windows commands. If the UID is, for example, -2, you do not have the write permission.

Fault Diagnosis

To address this problem, you need to modify the registry and change both the UID and GID of the Windows user accessing NFS to 0.

Solution

  1. Choose Start > Run and enter regedit to open the registry.
  2. Enter the HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\DesktopServer directory. Figure 1 shows an example of the directory.

    Figure 1 Entering the directory

  3. Right-click the blank area and choose New > QWORD Value from the shortcut menu. Set AnonymousUid and AnonymousGid to 0. Figure 2 shows a successful operation.

    Figure 2 Adding values