Update group membership Linux
- 03 Jun 2017: Post was created (diff)
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