Creating an FTP Share

This section describes how to set an FTP share for a namespace or dtree and set access permissions for users.

Prerequisites

Precautions

A user can be authorized to only one FTP share. If the user is authorized to access a new share, the original share permissions will be canceled. If you re-configure permissions for the user, the new permissions will overwrite the original permissions.

Procedure

  1. Choose Resources > Resources > Share > FTP Share.
  2. Select a desired account from the Account drop-down list in the upper left corner.
  3. Click Create.

    The Create FTP Share page is displayed on the right.

  4. Set basic FTP share parameters.

    Table 1 describes related parameters.

    Table 1 Basic FTP share parameters

    Parameter

    Description

    Share Name

    Name of the share, to be used by users to access shared resources.

    [Value range]

    • The name must be unique.
    • The share name cannot contain characters "/\[]:|<>+;,?*=#, start or end with a space, or be reserved name ipc$, autohome, ~, or print$.
    • The name contains 1 to 80 characters.

    Namespace

    Namespace for which you want to create an FTP share.

    Dtree

    Dtree for which you want to create an FTP share. If you do not select a dtree, the FTP share is created for the entire namespace.

  5. Set users who can access the FTP share.

    1. In the Permission area, click Add.

      The Add User dialog box is displayed.

    2. Select users in the Available Users area. They will be automatically added to the Selected Users on the right.
    3. In the Permission area, set the permissions of the selected users. The share permissions include:

      When you select an audit log file system to create a share, only the View List and Download permissions are supported.

      • View List
      • Create Directory
      • Upload

        If you select this permission, you need to set the maximum upload bandwidth for individual connections.

        • If a user logs in to the FTP server through a client and keeps the login state, a connection exists. All operations on the connection are regarded as the traffic of the connection.
        • By default, the bandwidth is 0 KB/s. That is, the bandwidth is not limited.
        • The upload bandwidth ranges from 0 to 409600, in KB/s.
      • Download

        If you select this permission, you need to set the maximum download bandwidth for individual connections.

        • If a user logs in to the FTP server through a client and keeps the login state, a connection exists. All operations on the connection are regarded as the traffic of the connection.
        • By default, the bandwidth is 0 KB/s. That is, the bandwidth is not limited.
        • The download bandwidth ranges from 0 to 409600, in KB/s.
      • Rename
      • Delete
    4. Click OK.

      The system adds the selected users to the permission list.

      You can modify or remove user permissions in the permission list area.

  6. Click OK.

Follow-up Procedure

If only the file service is enabled, for FTP shares, only user root (ID 0) has permissions on the current share path. If you want to log in as another user, perform the following steps:

  1. Log in to the CLI. For details, see File Service Command > Logging In to the CLI in the command reference of the corresponding version.
  2. Run the change namespace general command to change the value of unix_permissions (that is, UNIX permissions on the root directory of the namespace) to 777. Command output similar to the following is displayed:
    admin:/>change namespace general name=1 unix_permissions=777
    Command executed successfully.