Mike,
Maybe I'm too used to reading cryptic man pages, but this one
seems pretty clear to me...
> The groupadd command lists a "-o" option.
>
> SYNOPSIS
> groupadd [-g gid [-o]] [-r] [-f] group
> [SNIP]
> -g gid The numerical value of the group's ID. This value
> must be unique, unless the -o option is used.
Hence, 'groupadd -g 0 haXX0r' will fail (groupadd: gid 0 is not unique),
but 'groupadd -g 0 -o haXX0r' will successfully add the group haXX0r
with gid=0 (as an alias for the "root" group).
> [SNIP]
> -f [SNIP] This option also modifies the way -g option works.
> When you request a gid that it is not unique and
> you don't give -o option too, the group creation
> will fall back to the standard behavior (adding a
[UNSNIP] group as neither -g or -o options were specified).
[UNSNIP] This is an option added by Red Hat Software.
Hence, 'groupadd -g 0 -f haxx0r' will add the group haxx0r, with
a GID is that in _new_ AND _unique_ (gid>500 unless the "-r" option
is given, in which case gid<500...).
Finally 'groupadd -g 0 -o -f haxx0r' is equivalent to
'groupadd -g 0 -o haxx0r' since there is nothing to force.
--
\Peter.
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list