Man group, groupadd etc. (also info - the same) don't define what class of words are the groupnames permitted from. It doesn't specify minimum and maximum length on these data. Reproducible: Always Steps to Reproduce: 1.man group 2.man groupadd 3. Actual Results: Got a doc that doesn't define limitations on groupname Expected Results: Get a doc that does define limitations on groupname
ciaran, can you find us such a doc?
groupadd Test Test is not a valid group name
man usermod (-g switch) has the same problem.
going by the source code: /* * Arbitrary limit for group names - max 16 * characters (same as on HP-UX 10). */ if (strlen (name) > 16) return 0; static int good_name (const char *name) { /* * User/group names must match [a-z_][a-z0-9_-]* */
e-mailed the shadow maintainer requesting these restrictions be listed in the manpages
added a patch to 4.0.6 to include restriction information ... no version bump since this isnt critical :P