Update group membership Linux

Revision history
Tags: linux group

Added myself to a new group, but I need to refresh the groups for the current session to realize the new membership. Logging out and back in again to the current SSH session does not solve it. newgrp can help you out. Takes one argument; the group you think you should be a part of:

# gpasswd -a myusername wheel
$ group
myusername
$ newgrp wheel
$ group
myusername wheel

If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.