linux: refreshing groups without having to re-login [duplicate]

Solution 1:

possible in shell (I don't think it is for gui)

try newgrp groupname

I wrote more info on this on my blog a while back. according to that this will also change the default group of the shell. you can use sg to Switch your default Group

Solution 2:

su - username will do it for the shell (and subproccesses) that su opens up, but for everything else you'll need to relog.