Adding a File Name Extension Filtering Rule

This section describes how to add a file name extension filtering rule to control the types of files that users can access in a CIFS share.

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 share and select Add File Name Extension Filtering Rule.

    The Add File Name Extension Filtering Rule page is displayed on the right.

    • Alternatively, you can perform either of the following operations to add a rule:
      • Click the name of a desired CIFS share. On the details page that is displayed, click Add in the File Name Extension Filtering area.
      • Click the name of a desired CIFS share. In the upper right corner of the details page that is displayed, select Add File Name Extension Filtering Rule from the Operation drop-down list.
    • After a file name extension filtering rule is added, it takes effect only after the next CIFS service request (such as refreshing directories, creating files, opening files, renaming files, and querying file attributes) is initiated.

  4. Add a file name extension filtering rule.

    The file name extension filtering rule is valid only for the current share.

    1. In File Name Extension, specify the file name extensions (file types) to be filtered.
      • You can enter multiple file name extensions and separate them with commas (,) or carriage returns. A total of 127 characters (including the separators) are allowed.
      • A single file name extension can contain only digits, letters, spaces, and special characters (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~). Wildcards ? and * are supported, and wildcard * must be the last character. For example, txt, TXT, T?X, or Tx*.
      • It is recommended that one share have no more than seven file name extension filtering rules and a single file name extension filtering rule contains no more than 32 characters excluding wildcards. These recommended configurations minimize the adverse impact on CIFS service performance. If the recommended configurations are not used, the CIFS service performance may greatly deteriorate.
      • When configuring a file name extension filtering rule, ensure that the rule does not affect the storage of temporary files that may be generated when application software is running. For example, some application software may generate files with the .tmp file name extension. In this case, add the .tmp extension to the file name extension filtering rule. For details about the temporary file name extensions generated by specific application software, contact the corresponding software vendor.
      • File name extension filtering rules are case sensitive. For example, TXT and txt can be configured at the same time. However, Windows clients do not apply case sensitivity. Therefore, both rules take effect for TXT files. When both rules are configured as Denied only or one is Denied only and the other is Allowed only, the combined minimum permissions under the two rules take effect. When both rules are configured as Allowed only, the combined maximum permissions under the two rules take effect. When wildcards are used, for example, t?t and tx*, both rules take effect for TXT files. The mechanism for the rules to take effect is the same as above.
        • Example 1: If you configure rule txt to deny read only and rule TXT to allow write only, you will have no permission on TXT files.
        • Example 2: If you configure rule txt to deny read only and rule TXT to deny write only, you will have all other but no read and write permissions on TXT files.
        • Example 3: If you configure rule txt to allow read only and rule TXT to allow write only, you will have no other but read and write permissions on TXT files.
    2. Select a permission rule from the Rule Type drop-down list.
      • Denied only: Users do not have permissions to access files with the specified extensions.
      • Allowed only: Users have permissions to access files with the specified extensions.
    3. Select one or more operation types on the right of Operation Type to deny or allow users to perform specified operations on files with specified file name extensions.

      For example, if you input txt in File Name Extension, set Rule Type to Allowed only, and select Read and Write in Operation Type, you can read and write only .txt files. Except read and write, there are no restrictions on other operation types for all files.

  5. Click OK.