Advanced group handling via gpasswd
: set password, administrators and members of groups.
Add user “test” to group “grp1”:
gpasswd -a test grp1
The user “test” can then join the group from existing sessions using newgrp
:
newgrp grp1
(not necessary for new sessions).