Adding a Mapping Rule for a CIFS Homedir Share

This section describes how to add a mapping rule for a CIFS Homedir share. Only users matching the mapping rule can access the Homedir share directory in a namespace.

Prerequisites

Mapping rules can be configured only for CIFS Homedir shares.

Procedure

  1. Choose Resources > Resources > Share > CIFS Share.
  2. Select a desired account from the Account drop-down list in the upper left corner.
  3. Click More on the right of a desired CIFS Homedir share and select Add Mapping Rule.

    The Add Mapping Rule page is displayed on the right.

    Alternatively, you can perform either of the following operations to add a user:

    • Click the name of a desired CIFS Homedir share. On the page that is displayed, click Add in the Mapping Rule area.
    • Click the name of a desired CIFS Homedir share. In the upper right corner of the page that is displayed, select Add Mapping Rule from the Operation drop-down list.

  4. In Username, specify the user name of the CIFS Homedir mapping rule.

    • The user name contains 1 to 255 characters.
    • The user name can be a common or domain user name. A domain user name uses a backslash (\) to connect the domain name and user name. Only one backslash (\) is allowed, for example, china\user001. The domain name can only be a NetBIOS name.
    • The user name can contain only one wildcard (*), and the wildcard must be at the end of the user name. For example, china\* indicates all users in the china domain.
    • The user name can neither contain special characters "/[]<>+:;,?=|, and spaces, nor start with a backflash (\) and end with a period (.) or backflash (\). Wildcard (*) can only be at the end of the user name. Only one backflash (\) and wildcard (*) can be used.

  5. In the Namespace drop-down list, select a namespace for which you want to create a mapping rule.

    If Security Style of the namespace is UNIX, ensure that the user has the permission to access the relative path of the Homedir share when creating a mapping rule. Otherwise, the user cannot access the Homedir share.

  6. From the Dtree drop-down list, select a dtree for which you want to create a mapping rule.
  7. In Priority, set the priority of the mapping rule.

    • The value of Priority ranges from 1 to 1024. A smaller value indicates a higher priority.
    • Mapping rules are sorted by priority. A smaller value indicates a higher priority. Rules with the same priority are sorted based on the creation sequence. Users match priorities based on the mapping rules.

  8. Determine whether to enable Auto Create Path. After this function is enabled, if there is no relative path under the CIFS Homedir share, the system creates a relative path automatically.

    • When Auto Create Path is disabled, if there is no user path, the current mapping rule fails to be matched, and the system continues to match the next mapping rule.
    • If Security Style of the namespace is UNIX, the UNIX permission of the namespace root directory is 755 by default. To modify the UNIX permission, run the change

      namespace general name=Namespace name unix_permissions=777 command, so that the automatic path creation function takes effect. Otherwise, users matching this rule cannot access the Homedir share.

  9. Click OK.

    Confirm your operation as prompted.