-
nomadhaven't checked, but doesn't -g change the main group for the user? check their entry in /etc/passwd and see if it happened there.
-
nomadah, yep:
-
nomad-g group
-
nomadSpecify an existing group's integer ID or character-string name. It
-
nomadredefines the user's primary group membership.
-
nomadUse -G for additional groups.
-
nomad(see 'man usermod' for details.)
-
jayjwaNope. Not in either, contrary to what the manpage for usermod shows. Where is 'groups' getting its info from?
-
jclulowjayjwa: Assuming you have "group: files" in /etc/nssswitch.conf it comes from /etc/group
-
l33t-31337-h4x0rhi all
-
neitzeljayjwa: the new group will not affect extisting logins of the user, only new logins. (login(1) is what's setting the groups; an "su - $USER" should do, too.)
-
jayjwaSomething's off here. termbin.com/dg79 Ignore the escape sequences; they were originally color output.
-
jayjwaWhen a user's primary is that group, he doesn't have to be listed after the group in /etc/groups. It is not necessary for the user to have the primary group also be the secondary group. That is the answer to my question. Sorry for the noise.