Keresés

Új hozzászólás Aktív témák

  • vargalex

    félisten

    válasz szuszinho #7664 üzenetére

    Az useradd man-jában ez áll:

    -g, --gid GROUP
        The group name or number of the user's initial login group. The group name must exist. A group number must refer to an already existing group.
        If not specified, the behavior of useradd will depend on the USERGROUPS_ENAB variable in /etc/login.defs. If this variable is set to yes (or -U/--user-group is specified on the command line), a group will be created for
        the user, with the same name as her loginname. If the variable is set to no (or -N/--no-user-group is specified on the command line), useradd will set the primary group of the new user to the value specified by the GROUP
        variable in /etc/default/useradd, or 100 by default.

    A korábban hivatkozott wiki-ben pedig ez áll:

    If an initial login group is specified by name or number, it must refer to an already existing group. If not specified, the behaviour of useradd will depend on the USERGROUPS_ENAB variable contained in /etc/login.defs. The default behaviour (USERGROUPS_ENAB yes) is to create a group with the same name as the username.

    Tehát default-ban csak akkor lesz az users csoport tagja, ha azt az useradd parancsnál a -g kapcsoló használatával direkt kéred.

    De az egész erre a hozzászólásra regalálás.

Új hozzászólás Aktív témák