[ale] User Private Group -- what are the benefits?

James Sumners james.sumners at gmail.com
Mon Jun 4 20:29:02 EDT 2012


`useradd -G group1,group2,group3 new_user` will add "new_user" to the
system and add him to the groups "group1", "group2", "group3", and
"new_user" (on systems that create UPGs by default, otherwise to the
default users group). So, yes, it is similar to doing `usermod -aG
group4 new_user` after the user has already been created (to add him
to the "group4" group). The difference is in knowing what groups the
user needs to be a member of ahead of time. `usermod` is handy when
the user needs to be added to a group later; you could also use
`vigr`.

On Mon, Jun 4, 2012 at 7:53 PM, Wolf Halton <wolf.halton at gmail.com> wrote:
> Is this a little like usermod -aG added_group fred one could use to add a
> group to user fred without changing freds original group?
>
> Wolf
>
> On Jun 4, 2012 2:02 PM, "Jeff Hubbs" <jhubbslist at att.net> wrote:
>>
>> FWIW, the convention in Gentoo is to use " useradd -m -G users
>> <username>".




-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59


More information about the Ale mailing list