Deploying the hwMindX User
Deploying the hwMindX user is to enable non-root users to perform training operations. The deployment procedure is as follows:
- Create the HwHiAiUser user. Use the shell script /bin/bash after login.
useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser
- Create the hwMindX user. Use the shell script /bin/bash after login.
useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX
- Add the hwMindX user to the HwHiAiUser owner group.
usermod -a -G HwHiAiUser hwMindX
- 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 to start a container, do not directly mount the /home/ and /home/hwMindX/ directories.
For common questions about service execution, see FAQ.