Updated on 2022-05-17 GMT+08:00

Initializing obsfs

Before using obsfs, you need to write the access keys (AK and SK) into the key file, enabling user authentication before using parallel file systems.

This topic describes how to write the access keys to the /etc/passwd-obsfs file.

Prerequisites

You have obtained the access keys (AK and SK). For details, see Resource Preparation.

Procedure

  1. Open the CLI.
  2. Run the following command to write the access keys into the /etc/passwd-obsfs file:

    echo AK:SK > /etc/passwd-obsfs

  3. Run the following command to check whether the key information is successfully configured:

    cat /etc/passwd-obsfs

  4. Run the following command to set the key file to be used only by the current user:

    chmod 600 /etc/passwd-obsfs