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!
asked 12 Apr '13, 01:57
It is not possible to specify main group that the user should be added to.
However, you can run
answered 12 Apr '13, 11:05