Wed, 20 Mar 2013 11:45:10 -0700 Post Comments
would have to force user to logout to affect this change. If one did
this as a Linux Admin where developers were knee deep in work this
would not be very well received.
The way to do this without disrupting the user is to use the "newgrp" command:
$newgrp - audio
"The newgrp command is used to change the current group ID during
a login session.
If the optional - flag is given, the user's environment will be
though the user had logged in, otherwise the current
current working directory, remains unchanged.
newgrp changes the current real group ID to the named group, or
to the default
group listed in /etc/passwd if no group name is given. newgrp
also tries to add
the group to the user groupset."