From my understanding, a Linux session caches its group memberships at login. Then if a new group membership is added (e.g. with
adduser someuser somegroup), the user must log out and log in again to be able to take advantage of the new membership.
My question is: is there any way to refresh group memberships in-process, without logging in again, exiting the current process, or starting a new process?