User UID or GID Is Occupied
Symptom
The UID or GID of a user is occupied by another user.
Cause Analysis
None
Solution
- If the user is HwHiAiUser, some driver files cannot be directly modified because they have the i attribute. Therefore, you are advised to uninstall the driver and firmware, and then change the UID and GID of the HwHiAiUser user using the method of changing the UID and GID of the hwMindX user. Then, reinstall the driver and firmware.
- If the user is hwMindX, perform the following steps.
- Change the UID and GID of the user who currently occupies UID 9000 and GID 9000 to another value.
- For example, if the current user is test, change its UID and GID to 1001.
usermod -u 1001 test; groupmod -g 1001 test;
- Change the file owner.
For example, if the test user has a file when the user's UID and GID are 9000, after the UID and GID of the test user are changed to 1001, the file owner needs to be changed from 9000 to 1001.
find / -user 9000 -exec chown test {} \; find / -user 9000 -exec chown -h test {} \; find / -group 9000 -exec chgrp test {} \; find / -group 9000 -exec chgrp -h test {} \;
- For example, if the current user is test, change its UID and GID to 1001.
- Change the UID and GID of the hwMindX user to 9000.
usermod -u 9000 hwMindX groupmod -g 9000 hwMindX
If the original UID and GID of the hwMindX user are 1005, run the following commands to change them:find / -user 1005 -exec chown hwMindX {} \; find / -user 1005 -exec chown -h hwMindX {} \; find / -group 1005 -exec chgrp hwMindX {} \; find / -group 1005 -exec chgrp -h hwMindX {} \;
Parent topic: Faults During Installation