Deploying the hwMindX User

Deploying the hwMindX user is to enable non-root users to perform inference operations. The deployment procedure is as follows:

  1. Create the HwHiAiUser user. Use the shell script /bin/bash after login.
    useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser
  2. Create the hwMindX user. Use the shell script /bin/bash after login.
    useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX
  3. Add the hwMindX user to the HwHiAiUser owner group.
    usermod -a -G HwHiAiUser hwMindX
  4. Before starting the container, change the owner of all to-be-mounted directories to hwMindX.
    chown -R hwMindX:hwMindX /${file directory}   # /${file directory} is the user required directory.

    When running the command for starting a container, do not directly mount the /home and /home/hwMindX directories. Otherwise, files in the /home/hwMindX/sdk_home directory will be overwritten.

For common questions about service execution, see FAQ.