Creating a User Account

Run the following commands on the node where the corresponding component is installed to create a user account:

  • Ubuntu OS
    useradd -d /home/hwMindX -u 9000 -m -s /usr/sbin/nologin hwMindX
    usermod -a -G HwHiAiUser hwMindX
  • CentOS OS
    useradd -d /home/hwMindX -u 9000 -m -s /sbin/nologin hwMindX
    usermod -a -G HwHiAiUser hwMindX
  • For other OSs:
    • For OSs developed based on Ubuntu, see Ubuntu OS.
    • For OSs developed based on CentOS, see CentOS OS.
  • HwHiAiUser is the software running user required by the driver or CANN package.
  • Run the getent passwd command to check whether the UIDs and GIDs of HwHiAiUser on all physical machines (storage nodes, management nodes, and compute nodes) and containers are the same and are 1000. If the UIDs and GIDs are occupied, services may be unavailable, see User UID or GID Is Occupied.
Table 1 Component users

Component

Boot User

Privileged Container Used or Not

NPU Exporter

  • Run in binary mode: hwMindX
  • Run in the container: root
  • Run in binary mode: N/A
  • Run in the container: Privileged containers are required. You are advised to run containers in binary mode.

Ascend Device Plugin

root

Yes

NodeD

Volcano

hwMindX

N/A

ClusterD

Resilience Controller

Ascend Operator

Elastic Agent

User-defined. A non-root user is recommended.

User-defined. Privileged containers are not recommended.

TaskD

Container Manager

root

N/A