Figure 21 NFS-mapped users and groups in ADSI Edit

.

Because the imported users and groups are now Windows users and groups as well as UNIX users and groups, you can use NFS sharing so that volumes, folders and files are visible in both the Windows file system and the UNIX file system. When you set ownership or permissions in the Windows file system, the proper ownership and permissions are set on the UNIX side. Likewise, setting ownership or permissions in the UNIX file system results in proper values on the Windows file system.

Shared access example

The following example illustrates how to use the provided AD LDS scripts. By following the procedures, you will create a password and group file that serves as input for the nfs-adlds-config.js script. You will then create a Windows folder that you will set to be NFS shared by the group Everyone. You will then mount this folder in UNIX and observe how a file created in UNIX is owned by the corresponding mapped user on the Windows system. Similarly you will create a file in Windows, change its ownership to an NFS mapped user, and observe that it is owned by the proper user and group in UNIX. Finally, you will restrict the properties of the Windows shared folder so that it is accessible by a single user instead of the group Everyone.

NOTE:

This example assumes that the system is not part of an Active Directory domain or is part of an Active Directory domain but will be using AD LDS for user name mapping.

IMPORTANT:

To ensure proper NFS user name mapping behavior when AD LDS is used for user name mapping, you must enable Microsoft hotfix 2222746, which is installed on the storage system but is not enabled it by default. You can enable it by setting the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NfsServer\NlmNsm\AutoCorrectPrimaryGroup Type: REG_DWORD

Value: 0x1

After setting the registry subkey, restart the storage system.

P4000 G2 Unified NAS Gateway User Guide 59

Page 59
Image 59
HP P4000 G2 manual Shared access example, NFS-mapped users and groups in Adsi Edit