Description of problem: ssh to some machine and then add some user by "useradd <some name>" on this machine. Then the user will be added, but getting an error message: "useradd: unknown GID 100". Getting no error message in FC4! Version-Release number of selected component (if applicable):shadow-utils-4.0.14-6.FC5 How reproducible: Each time Steps to Reproduce: 1.ssh root@<target> 2.useradd <someuser> 3. Actual results: useradd: unknown GID 100 Expected results: No message Additional info:
I can't reproduce it. peter@a05-0705a ~ $ ssh root@wrabco root@wrabco's password: Last login: Tue May 2 14:36:38 2006 from aspr0n.redhat.usu wrabco ~ # useradd foo wrabco ~ # rpm -q shadow-utils shadow-utils-4.0.14-6.FC5 wrabco ~ # rpm -q fedora-release fedora-release-5-5
I have made a "strace useradd eric" and I have attached the output (during a script session).
Created attachment 128881 [details] strace useradd ...
Is there a group with ID 100 on your system? grep 100 /etc/group
No, only a group with groupid 1000.
So, that's the problem. Change your default group in /etc/default/useradd or create group with ID=100 see: man useradd section default values
You are right, but if I use the useradd command together with the "-g <some existing group>" option, then the warning about not existing gid 100 appears too, and I think this is a bug.
but the user is created. I don't consider this as a bug. You can try to report it to upstream.