I want to create a group "testGroup" and a user "testUser" in Linux, but failed. Error message: Error executing action <addgrouptouser>. I have added the group and the user first. In /etc/group, there is: testGroup:!:1001:testUser. In /etc/passwd, there is: testUser:x:1002:100::/home/testUser:/bin/bash. It seems the "testUser" has added to "testGroup", but the installation abort with failure. Moreover, my original intention is create a user "testUser" in group "testGroup", such as in /etc/passwd: testUser:x:1002:1001::/home/testUser:/bin/bash. What can I do? Thank you!
Please sign in to leave a comment.