Updated on 2024-02-29 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 check whether the key information is successfully configured:

    cat /etc/passwd-obsfs

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

    chmod 600 /etc/passwd-obsfs

    To prevent your AK and SK from being leaked, use a temporary AK/SK pair or periodically change the AK/SK pair. Updating AK/SK pairs do not interrupt services. You need to delete unused key files in a timely manner.